@cometchat/chat-uikit-react 6.2.1 → 6.2.2

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.
@@ -26,10 +26,109 @@
26
26
  overflow-y: auto;
27
27
  }
28
28
 
29
+ .cometchat-ai-assistant-chat-history__header-container {
30
+ background: transparent;
31
+ box-sizing: border-box;
32
+ height: fit-content;
33
+ width: 100%;
34
+ }
35
+
36
+ .cometchat-ai-assistant-chat-history .cometchat-list__header {
37
+ background: transparent;
38
+ border: none;
39
+ }
40
+
41
+ .cometchat-ai-assistant-chat-history .cometchat-ai-assistant-chat-history__header-container-new-chat-container {
42
+ padding-bottom: var(--cometchat-padding-5);
43
+ box-sizing: border-box;
44
+
45
+ }
46
+
47
+ .cometchat-ai-assistant-chat-history .cometchat-ai-assistant-chat-history__header-container-new-chat-container .cometchat-button {
48
+ height: fit-content;
49
+ width: 100%;
50
+ border: none;
51
+ background: transparent;
52
+ padding: 0;
53
+ margin: 0;
54
+ box-sizing: border-box;
55
+ padding: var(--cometchat-padding-2);
56
+ gap: var(--cometchat-spacing-2);
57
+ min-height: 44px;
58
+ justify-content: flex-start;
59
+ padding-left: 0;
60
+
61
+ }
62
+ .cometchat-ai-assistant-chat-history .cometchat-ai-assistant-chat-history__header-container-new-chat-container .cometchat-button__icon {
63
+ background: var(--cometchat-icon-color-secondary);
64
+ height: 24px;
65
+ width: 24px;
66
+ }
67
+ .cometchat-ai-assistant-chat-history .cometchat-ai-assistant-chat-history__header-container-new-chat-container .cometchat-button:hover {
68
+ background: var(--cometchat-background-color-03);
69
+ border-radius: var(--cometchat-radius-2);
70
+
71
+ }
72
+ .cometchat-ai-assistant-chat-history__list-options{
73
+ visibility: hidden;
74
+ }
75
+ .cometchat-ai-assistant-chat-history__list-item:hover .cometchat-ai-assistant-chat-history__list-options{
76
+ visibility: visible;
77
+ }
29
78
  .cometchat-ai-assistant-chat-history__list-item {
30
79
  padding: var(--cometchat-padding-3) var(--cometchat-padding-2);
31
80
  background: var(--cometchat-background-color-02);
32
81
  transition: background 0.2s ease;
82
+ display: flex;
83
+ flex-direction: row;
84
+ width: 100%;
85
+ justify-content: space-between;
86
+ align-items: center;
87
+ }
88
+
89
+ .cometchat-ai-assistant-chat-history__list-item-date-header {
90
+ display: flex;
91
+ justify-content: flex-start;
92
+ align-items: flex-start;
93
+ border-radius: var(--cometchat-radius-1, 4px);
94
+ background: transparent;
95
+ width: fit-content;
96
+ min-height: 42px;
97
+ box-sizing: border-box;
98
+ padding: var(--cometchat-padding-5) var(--cometchat-padding-2) var(--cometchat-padding-2) var(--cometchat-padding-2);
99
+ width: 100%;
100
+
101
+ }
102
+
103
+ .cometchat-ai-assistant-chat-history__list-item-date-header-start {
104
+ padding: var(--cometchat-padding-2);
105
+
106
+ }
107
+ .cometchat-ai-assistant-chat-history .cometchat-menu-list__menu {
108
+ background-color: transparent;
109
+ }
110
+
111
+ .cometchat-ai-assistant-chat-history .cometchat-menu-list__main-menu-item{
112
+ background-color: transparent;
113
+ box-shadow: none;
114
+ }
115
+
116
+
117
+ .cometchat-ai-assistant-chat-history .cometchat-menu-list__main-menu-item-icon-delete {
118
+ -webkit-mask: url("../../assets/delete_icon.svg") center center no-repeat;
119
+ mask: url("../../assets/delete_icon.svg") center center no-repeat;
120
+ background: var(--cometchat-error-color,#F44649);
121
+ width: 24px;
122
+ height: 24px;
123
+ -webkit-mask-size: contain;
124
+ }
125
+ .cometchat-ai-assistant-chat-history__list-item-date-header .cometchat-date {
126
+ padding: 0;
127
+ }
128
+
129
+ .cometchat-ai-assistant-chat-history__list-item-container {
130
+ height: fit-content;
131
+ width: 100%;
33
132
  }
34
133
 
35
134
  .cometchat-ai-assistant-chat-history__list-item:hover {
@@ -134,7 +233,7 @@
134
233
  gap: var(--cometchat-padding-5, 20px);
135
234
  justify-content: center;
136
235
  align-items: center;
137
- background: transparent;
236
+ background: transparent;
138
237
  }
139
238
 
140
239
 
@@ -10,7 +10,10 @@
10
10
  background: var(--cometchat-background-color-01, #FFF);
11
11
  position: relative;
12
12
  }
13
-
13
+ .cometchat-conversations .cometchat-conversations-header{
14
+ min-height: 64px;
15
+ box-sizing: border-box;
16
+ }
14
17
  .cometchat-conversations .cometchat-list__body>div:not([class]):first-child {
15
18
  display: none;
16
19
  }
@@ -26,10 +26,109 @@
26
26
  overflow-y: auto;
27
27
  }
28
28
 
29
+ .cometchat-ai-assistant-chat-history__header-container {
30
+ background: transparent;
31
+ box-sizing: border-box;
32
+ height: fit-content;
33
+ width: 100%;
34
+ }
35
+
36
+ .cometchat-ai-assistant-chat-history .cometchat-list__header {
37
+ background: transparent;
38
+ border: none;
39
+ }
40
+
41
+ .cometchat-ai-assistant-chat-history .cometchat-ai-assistant-chat-history__header-container-new-chat-container {
42
+ padding-bottom: var(--cometchat-padding-5);
43
+ box-sizing: border-box;
44
+
45
+ }
46
+
47
+ .cometchat-ai-assistant-chat-history .cometchat-ai-assistant-chat-history__header-container-new-chat-container .cometchat-button {
48
+ height: fit-content;
49
+ width: 100%;
50
+ border: none;
51
+ background: transparent;
52
+ padding: 0;
53
+ margin: 0;
54
+ box-sizing: border-box;
55
+ padding: var(--cometchat-padding-2);
56
+ gap: var(--cometchat-spacing-2);
57
+ min-height: 44px;
58
+ justify-content: flex-start;
59
+ padding-left: 0;
60
+
61
+ }
62
+ .cometchat-ai-assistant-chat-history .cometchat-ai-assistant-chat-history__header-container-new-chat-container .cometchat-button__icon {
63
+ background: var(--cometchat-icon-color-secondary);
64
+ height: 24px;
65
+ width: 24px;
66
+ }
67
+ .cometchat-ai-assistant-chat-history .cometchat-ai-assistant-chat-history__header-container-new-chat-container .cometchat-button:hover {
68
+ background: var(--cometchat-background-color-03);
69
+ border-radius: var(--cometchat-radius-2);
70
+
71
+ }
72
+ .cometchat-ai-assistant-chat-history__list-options{
73
+ visibility: hidden;
74
+ }
75
+ .cometchat-ai-assistant-chat-history__list-item:hover .cometchat-ai-assistant-chat-history__list-options{
76
+ visibility: visible;
77
+ }
29
78
  .cometchat-ai-assistant-chat-history__list-item {
30
79
  padding: var(--cometchat-padding-3) var(--cometchat-padding-2);
31
80
  background: var(--cometchat-background-color-02);
32
81
  transition: background 0.2s ease;
82
+ display: flex;
83
+ flex-direction: row;
84
+ width: 100%;
85
+ justify-content: space-between;
86
+ align-items: center;
87
+ }
88
+
89
+ .cometchat-ai-assistant-chat-history__list-item-date-header {
90
+ display: flex;
91
+ justify-content: flex-start;
92
+ align-items: flex-start;
93
+ border-radius: var(--cometchat-radius-1, 4px);
94
+ background: transparent;
95
+ width: fit-content;
96
+ min-height: 42px;
97
+ box-sizing: border-box;
98
+ padding: var(--cometchat-padding-5) var(--cometchat-padding-2) var(--cometchat-padding-2) var(--cometchat-padding-2);
99
+ width: 100%;
100
+
101
+ }
102
+
103
+ .cometchat-ai-assistant-chat-history__list-item-date-header-start {
104
+ padding: var(--cometchat-padding-2);
105
+
106
+ }
107
+ .cometchat-ai-assistant-chat-history .cometchat-menu-list__menu {
108
+ background-color: transparent;
109
+ }
110
+
111
+ .cometchat-ai-assistant-chat-history .cometchat-menu-list__main-menu-item{
112
+ background-color: transparent;
113
+ box-shadow: none;
114
+ }
115
+
116
+
117
+ .cometchat-ai-assistant-chat-history .cometchat-menu-list__main-menu-item-icon-delete {
118
+ -webkit-mask: url("../../assets/delete_icon.svg") center center no-repeat;
119
+ mask: url("../../assets/delete_icon.svg") center center no-repeat;
120
+ background: var(--cometchat-error-color,#F44649);
121
+ width: 24px;
122
+ height: 24px;
123
+ -webkit-mask-size: contain;
124
+ }
125
+ .cometchat-ai-assistant-chat-history__list-item-date-header .cometchat-date {
126
+ padding: 0;
127
+ }
128
+
129
+ .cometchat-ai-assistant-chat-history__list-item-container {
130
+ height: fit-content;
131
+ width: 100%;
33
132
  }
34
133
 
35
134
  .cometchat-ai-assistant-chat-history__list-item:hover {
@@ -134,7 +233,7 @@
134
233
  gap: var(--cometchat-padding-5, 20px);
135
234
  justify-content: center;
136
235
  align-items: center;
137
- background: transparent;
236
+ background: transparent;
138
237
  }
139
238
 
140
239
 
@@ -10,7 +10,10 @@
10
10
  background: var(--cometchat-background-color-01, #FFF);
11
11
  position: relative;
12
12
  }
13
-
13
+ .cometchat-conversations .cometchat-conversations-header{
14
+ min-height: 64px;
15
+ box-sizing: border-box;
16
+ }
14
17
  .cometchat-conversations .cometchat-list__body>div:not([class]):first-child {
15
18
  display: none;
16
19
  }
@@ -19,6 +19,10 @@ interface CometChatAIAssistantChatHistoryProps {
19
19
  * Callback function triggered when clicked on a message
20
20
  */
21
21
  onMessageClicked?: ((message: CometChat.BaseMessage) => void) | undefined;
22
+ /**
23
+ * Callback function triggered when clicked on new chat button
24
+ */
25
+ onNewChatClicked?: ((id?: number) => void) | undefined;
22
26
  }
23
27
  declare const CometChatAIAssistantChatHistory: (props: CometChatAIAssistantChatHistoryProps) => import("react/jsx-runtime").JSX.Element;
24
28
  export { CometChatAIAssistantChatHistory };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cometchat/chat-uikit-react",
3
- "version": "6.2.1",
3
+ "version": "6.2.2",
4
4
  "description": "Ready-to-use Chat UI Components for React(Javascript/Web)",
5
5
  "author": "CometChat",
6
6
  "exports": {