@cometchat/chat-uikit-react 5.0.3 → 6.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 +3 -3
- package/SUPPORT.md +1 -1
- package/dist/index.d.ts +177 -5630
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/styles/CometChatFullScreenViewer.css +1 -1
- package/dist/styles/{CometChatThreadedMessagePreview.css → CometChatThreadHeader.css} +23 -23
- package/dist/styles/components/CometChatFullScreenViewer.css +1 -1
- package/dist/styles/components/{CometChatThreadedMessagePreview.css → CometChatThreadHeader.css} +23 -23
- package/dist/styles/components/index.css +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/types/Enums/Enums.d.ts +0 -10
- package/dist/types/components/BaseComponents/CometChatDate/CometChatDate.d.ts +2 -3
- package/dist/types/components/BaseComponents/CometChatEmojiKeyboard/emojis.d.ts +8 -8
- package/dist/types/components/BaseComponents/CometChatFullScreenViewer/CometChatFullScreenViewer.d.ts +5 -5
- package/dist/types/components/Calling/CallingConfiguration.d.ts +2 -0
- package/dist/types/components/Calling/CallingExtensionDecorator.d.ts +6 -0
- package/dist/types/components/Calling/CometChatCallLogs/CometChatCallLogs.d.ts +4 -4
- package/dist/types/components/Calling/Utils/utils.d.ts +0 -1
- package/dist/types/components/CometChatConversations/CometChatConversations.d.ts +4 -3
- package/dist/types/components/CometChatMessageHeader/CometChatMessageHeader.d.ts +5 -0
- package/dist/types/components/CometChatMessageInformation/CometChatMessageInformation.d.ts +9 -0
- package/dist/types/components/CometChatMessageList/CometChatMessageList.d.ts +18 -9
- package/dist/types/components/{CometChatThreadedMessagePreview/CometChatThreadedMessagePreview.d.ts → CometChatThreadHeader/CometChatThreadHeader.d.ts} +13 -4
- package/dist/types/events/CometChatMessageEvents.d.ts +0 -2
- package/dist/types/index.d.ts +4 -1
- package/dist/types/modals/CometChatMessageTemplate.d.ts +3 -2
- package/dist/types/resources/CometChatLocalize/cometchat-localize.d.ts +46 -5587
- package/dist/types/utils/CalendarObject.d.ts +27 -0
- package/dist/types/utils/DataSource.d.ts +3 -2
- package/dist/types/utils/DataSourceDecorator.d.ts +3 -2
- package/dist/types/utils/Interface.d.ts +24 -0
- package/dist/types/utils/MessageUtils.d.ts +3 -2
- package/dist/types/utils/MessagesDataSource.d.ts +20 -3
- package/dist/types/utils/util.d.ts +4 -0
- package/package.json +3 -4
- package/screenshots/sample_app_overview.png +0 -0
- package/dist/types/components/BaseComponents/CometChatDate/useCometChatDate.d.ts +0 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.cometchat-
|
|
1
|
+
.cometchat-thread-header {
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 420px;
|
|
4
4
|
flex-direction: column;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
background: var(--cometchat-background-color-01, #FFF);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
.cometchat-
|
|
12
|
+
.cometchat-thread-header__top-bar {
|
|
13
13
|
display: flex;
|
|
14
14
|
padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-4, 16px);
|
|
15
15
|
align-items: center;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
background: var(--cometchat-background-color-01, #FFF);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
.cometchat-
|
|
24
|
+
.cometchat-thread-header__top-bar-title {
|
|
25
25
|
display: flex;
|
|
26
26
|
flex-direction: column;
|
|
27
27
|
justify-content: center;
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
font: var(--cometchat-font-heading3-bold, 700 20px Roboto);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
.cometchat-
|
|
36
|
+
.cometchat-thread-header__top-bar-close {
|
|
37
37
|
display: flex;
|
|
38
38
|
width: 24px;
|
|
39
39
|
height: 24px;
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
cursor: pointer;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
.cometchat-
|
|
45
|
+
.cometchat-thread-header__top-bar-close .cometchat-button {
|
|
46
46
|
height: 24px;
|
|
47
47
|
width: 24px;
|
|
48
48
|
padding: 0px;
|
|
@@ -50,23 +50,23 @@
|
|
|
50
50
|
background: transparent;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
.cometchat-
|
|
53
|
+
.cometchat-thread-header__top-bar-close .cometchat-button:hover {
|
|
54
54
|
background: transparent;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
.cometchat-
|
|
57
|
+
.cometchat-thread-header__top-bar-close .cometchat-button:active {
|
|
58
58
|
background: transparent;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
.cometchat-
|
|
61
|
+
.cometchat-thread-header__top-bar-close .cometchat-button__icon {
|
|
62
62
|
background: var(--cometchat-icon-color-primary, #141414);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
.cometchat-
|
|
65
|
+
.cometchat-thread-header__top-bar-close .cometchat-button__icon:hover {
|
|
66
66
|
background: var(--cometchat-icon-color-highlight);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
.cometchat-
|
|
69
|
+
.cometchat-thread-header__body {
|
|
70
70
|
display: flex;
|
|
71
71
|
width: 100%;
|
|
72
72
|
padding-top: var(--cometchat-padding-3, 12px);
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
flex-shrink: 0;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
.cometchat-
|
|
77
|
+
.cometchat-thread-header__body-timestamp {
|
|
78
78
|
display: flex;
|
|
79
79
|
padding: var(--cometchat-padding-1, 4px) var(--cometchat-padding-2, 8px);
|
|
80
80
|
align-self: center;
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
.cometchat-
|
|
87
|
+
.cometchat-thread-header__body-timestamp .cometchat-date {
|
|
88
88
|
color: var(--cometchat-text-color-primary, #141414);
|
|
89
89
|
text-align: center;
|
|
90
90
|
font: var(--cometchat-font-caption1-medium, 500 12px Roboto);
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
display: flex;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
.cometchat-
|
|
95
|
+
.cometchat-thread-header__message {
|
|
96
96
|
display: flex;
|
|
97
97
|
padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-4, 16px);
|
|
98
98
|
gap: 0px;
|
|
@@ -102,34 +102,34 @@
|
|
|
102
102
|
flex: 1 0 0;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
.cometchat-
|
|
106
|
-
.cometchat-
|
|
105
|
+
.cometchat-thread-header__message::-webkit-scrollbar,
|
|
106
|
+
.cometchat-thread-header__message::-webkit-scrollbar-thumb {
|
|
107
107
|
display: none;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
.cometchat-
|
|
110
|
+
.cometchat-thread-header__message .cometchat-text-bubble .cometchat-text-bubble__read-more {
|
|
111
111
|
display: none;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
.cometchat-
|
|
114
|
+
.cometchat-thread-header__message-small {
|
|
115
115
|
min-height: fit-content;
|
|
116
116
|
max-height: 150px;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
.cometchat-
|
|
119
|
+
.cometchat-thread-header__message-incoming {
|
|
120
120
|
align-self: flex-start;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
.cometchat-
|
|
123
|
+
.cometchat-thread-header__message-outgoing {
|
|
124
124
|
align-self: flex-end;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
.cometchat-
|
|
127
|
+
.cometchat-thread-header__message .cometchat-message-bubble__wrapper {
|
|
128
128
|
padding: 0px;
|
|
129
129
|
width: 100%;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
.cometchat-
|
|
132
|
+
.cometchat-thread-header__reply-bar {
|
|
133
133
|
display: flex;
|
|
134
134
|
padding: var(--cometchat-padding-1, 4px) var(--cometchat-padding-5, 20px);
|
|
135
135
|
justify-content: center;
|
|
@@ -138,13 +138,13 @@
|
|
|
138
138
|
align-self: stretch;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
.cometchat-
|
|
141
|
+
.cometchat-thread-header__reply-bar-count {
|
|
142
142
|
color: var(--cometchat-text-color-secondary, #727272);
|
|
143
143
|
text-align: center;
|
|
144
144
|
font: var(--cometchat-font-body-regular, 400 14px Roboto);
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
.cometchat-
|
|
147
|
+
.cometchat-thread-header__reply-bar-divider {
|
|
148
148
|
width: 100%;
|
|
149
149
|
height: 1px;
|
|
150
150
|
background: var(--cometchat-border-color-default, #E8E8E8);
|
package/dist/styles/components/{CometChatThreadedMessagePreview.css → CometChatThreadHeader.css}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.cometchat-
|
|
1
|
+
.cometchat-thread-header {
|
|
2
2
|
display: flex;
|
|
3
3
|
width: 420px;
|
|
4
4
|
flex-direction: column;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
background: var(--cometchat-background-color-01, #FFF);
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
.cometchat-
|
|
12
|
+
.cometchat-thread-header__top-bar {
|
|
13
13
|
display: flex;
|
|
14
14
|
padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-4, 16px);
|
|
15
15
|
align-items: center;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
background: var(--cometchat-background-color-01, #FFF);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
.cometchat-
|
|
24
|
+
.cometchat-thread-header__top-bar-title {
|
|
25
25
|
display: flex;
|
|
26
26
|
flex-direction: column;
|
|
27
27
|
justify-content: center;
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
font: var(--cometchat-font-heading3-bold, 700 20px Roboto);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
.cometchat-
|
|
36
|
+
.cometchat-thread-header__top-bar-close {
|
|
37
37
|
display: flex;
|
|
38
38
|
width: 24px;
|
|
39
39
|
height: 24px;
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
cursor: pointer;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
.cometchat-
|
|
45
|
+
.cometchat-thread-header__top-bar-close .cometchat-button {
|
|
46
46
|
height: 24px;
|
|
47
47
|
width: 24px;
|
|
48
48
|
padding: 0px;
|
|
@@ -50,23 +50,23 @@
|
|
|
50
50
|
background: transparent;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
.cometchat-
|
|
53
|
+
.cometchat-thread-header__top-bar-close .cometchat-button:hover {
|
|
54
54
|
background: transparent;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
.cometchat-
|
|
57
|
+
.cometchat-thread-header__top-bar-close .cometchat-button:active {
|
|
58
58
|
background: transparent;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
.cometchat-
|
|
61
|
+
.cometchat-thread-header__top-bar-close .cometchat-button__icon {
|
|
62
62
|
background: var(--cometchat-icon-color-primary, #141414);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
.cometchat-
|
|
65
|
+
.cometchat-thread-header__top-bar-close .cometchat-button__icon:hover {
|
|
66
66
|
background: var(--cometchat-icon-color-highlight);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
.cometchat-
|
|
69
|
+
.cometchat-thread-header__body {
|
|
70
70
|
display: flex;
|
|
71
71
|
width: 100%;
|
|
72
72
|
padding-top: var(--cometchat-padding-3, 12px);
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
flex-shrink: 0;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
.cometchat-
|
|
77
|
+
.cometchat-thread-header__body-timestamp {
|
|
78
78
|
display: flex;
|
|
79
79
|
padding: var(--cometchat-padding-1, 4px) var(--cometchat-padding-2, 8px);
|
|
80
80
|
align-self: center;
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
.cometchat-
|
|
87
|
+
.cometchat-thread-header__body-timestamp .cometchat-date {
|
|
88
88
|
color: var(--cometchat-text-color-primary, #141414);
|
|
89
89
|
text-align: center;
|
|
90
90
|
font: var(--cometchat-font-caption1-medium, 500 12px Roboto);
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
display: flex;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
.cometchat-
|
|
95
|
+
.cometchat-thread-header__message {
|
|
96
96
|
display: flex;
|
|
97
97
|
padding: var(--cometchat-padding-2, 8px) var(--cometchat-padding-4, 16px);
|
|
98
98
|
gap: 0px;
|
|
@@ -102,34 +102,34 @@
|
|
|
102
102
|
flex: 1 0 0;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
.cometchat-
|
|
106
|
-
.cometchat-
|
|
105
|
+
.cometchat-thread-header__message::-webkit-scrollbar,
|
|
106
|
+
.cometchat-thread-header__message::-webkit-scrollbar-thumb {
|
|
107
107
|
display: none;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
.cometchat-
|
|
110
|
+
.cometchat-thread-header__message .cometchat-text-bubble .cometchat-text-bubble__read-more {
|
|
111
111
|
display: none;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
.cometchat-
|
|
114
|
+
.cometchat-thread-header__message-small {
|
|
115
115
|
min-height: fit-content;
|
|
116
116
|
max-height: 150px;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
.cometchat-
|
|
119
|
+
.cometchat-thread-header__message-incoming {
|
|
120
120
|
align-self: flex-start;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
.cometchat-
|
|
123
|
+
.cometchat-thread-header__message-outgoing {
|
|
124
124
|
align-self: flex-end;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
.cometchat-
|
|
127
|
+
.cometchat-thread-header__message .cometchat-message-bubble__wrapper {
|
|
128
128
|
padding: 0px;
|
|
129
129
|
width: 100%;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
.cometchat-
|
|
132
|
+
.cometchat-thread-header__reply-bar {
|
|
133
133
|
display: flex;
|
|
134
134
|
padding: var(--cometchat-padding-1, 4px) var(--cometchat-padding-5, 20px);
|
|
135
135
|
justify-content: center;
|
|
@@ -138,13 +138,13 @@
|
|
|
138
138
|
align-self: stretch;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
.cometchat-
|
|
141
|
+
.cometchat-thread-header__reply-bar-count {
|
|
142
142
|
color: var(--cometchat-text-color-secondary, #727272);
|
|
143
143
|
text-align: center;
|
|
144
144
|
font: var(--cometchat-font-body-regular, 400 14px Roboto);
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
.cometchat-
|
|
147
|
+
.cometchat-thread-header__reply-bar-divider {
|
|
148
148
|
width: 100%;
|
|
149
149
|
height: 1px;
|
|
150
150
|
background: var(--cometchat-border-color-default, #E8E8E8);
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
@import url('./CometChatIncomingCall.css');
|
|
53
53
|
@import url('./CometChatMessageInformation.css');
|
|
54
54
|
@import url('./CometChatOngoingCall.css');
|
|
55
|
-
@import url('./
|
|
55
|
+
@import url('./CometChatThreadHeader.css');
|
|
56
56
|
@import url('./CometChatToast.css');
|
|
57
57
|
|
|
58
58
|
|
package/dist/styles/index.css
CHANGED
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
@import url('./CometChatIncomingCall.css');
|
|
53
53
|
@import url('./CometChatMessageInformation.css');
|
|
54
54
|
@import url('./CometChatOngoingCall.css');
|
|
55
|
-
@import url('./
|
|
55
|
+
@import url('./CometChatThreadHeader.css');
|
|
56
56
|
@import url('./CometChatToast.css');
|
|
57
57
|
|
|
58
58
|
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is used for providing the required date configs.
|
|
3
|
-
* It is used in components where the date field is present.
|
|
4
|
-
*/
|
|
5
|
-
export declare enum DatePatterns {
|
|
6
|
-
time = 0,
|
|
7
|
-
DayDate = 1,
|
|
8
|
-
DayDateTime = 2,
|
|
9
|
-
DateTime = 3
|
|
10
|
-
}
|
|
11
1
|
/**
|
|
12
2
|
* It is used for specifying the position of the auxiliary buttons.
|
|
13
3
|
* It is used in CometChatMessageComposer component.
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CalendarObject } from "../../../utils/CalendarObject";
|
|
2
2
|
interface DateProps {
|
|
3
3
|
timestamp: number;
|
|
4
|
-
|
|
5
|
-
customDateString?: string | null;
|
|
4
|
+
calendarObject: CalendarObject;
|
|
6
5
|
}
|
|
7
6
|
/**
|
|
8
7
|
* CometChatDate is a generic component used to display dates in the required format.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const Emojis: ({
|
|
2
2
|
people: {
|
|
3
3
|
id: string;
|
|
4
|
-
name:
|
|
4
|
+
name: string;
|
|
5
5
|
symbol: string;
|
|
6
6
|
emojis: {
|
|
7
7
|
grinning: {
|
|
@@ -1546,7 +1546,7 @@ export declare const Emojis: ({
|
|
|
1546
1546
|
} | {
|
|
1547
1547
|
animals_and_nature: {
|
|
1548
1548
|
id: string;
|
|
1549
|
-
name:
|
|
1549
|
+
name: string;
|
|
1550
1550
|
symbol: string;
|
|
1551
1551
|
emojis: {
|
|
1552
1552
|
dog: {
|
|
@@ -2269,7 +2269,7 @@ export declare const Emojis: ({
|
|
|
2269
2269
|
} | {
|
|
2270
2270
|
food_and_drink: {
|
|
2271
2271
|
id: string;
|
|
2272
|
-
name:
|
|
2272
|
+
name: string;
|
|
2273
2273
|
symbol: string;
|
|
2274
2274
|
emojis: {
|
|
2275
2275
|
green_apple: {
|
|
@@ -2704,7 +2704,7 @@ export declare const Emojis: ({
|
|
|
2704
2704
|
} | {
|
|
2705
2705
|
activity: {
|
|
2706
2706
|
id: string;
|
|
2707
|
-
name:
|
|
2707
|
+
name: string;
|
|
2708
2708
|
symbol: string;
|
|
2709
2709
|
emojis: {
|
|
2710
2710
|
soccer: {
|
|
@@ -3130,7 +3130,7 @@ export declare const Emojis: ({
|
|
|
3130
3130
|
} | {
|
|
3131
3131
|
travel_and_places: {
|
|
3132
3132
|
id: string;
|
|
3133
|
-
name:
|
|
3133
|
+
name: string;
|
|
3134
3134
|
symbol: string;
|
|
3135
3135
|
emojis: {
|
|
3136
3136
|
red_car: {
|
|
@@ -3621,7 +3621,7 @@ export declare const Emojis: ({
|
|
|
3621
3621
|
} | {
|
|
3622
3622
|
objects: {
|
|
3623
3623
|
id: string;
|
|
3624
|
-
name:
|
|
3624
|
+
name: string;
|
|
3625
3625
|
symbol: string;
|
|
3626
3626
|
emojis: {
|
|
3627
3627
|
watch: {
|
|
@@ -4445,7 +4445,7 @@ export declare const Emojis: ({
|
|
|
4445
4445
|
} | {
|
|
4446
4446
|
symbols: {
|
|
4447
4447
|
id: string;
|
|
4448
|
-
name:
|
|
4448
|
+
name: string;
|
|
4449
4449
|
symbol: string;
|
|
4450
4450
|
emojis: {
|
|
4451
4451
|
heart: {
|
|
@@ -5556,7 +5556,7 @@ export declare const Emojis: ({
|
|
|
5556
5556
|
} | {
|
|
5557
5557
|
flags: {
|
|
5558
5558
|
id: string;
|
|
5559
|
-
name:
|
|
5559
|
+
name: string;
|
|
5560
5560
|
symbol: string;
|
|
5561
5561
|
emojis: {
|
|
5562
5562
|
afghanistan: {
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { CalendarObject } from '../../../utils/CalendarObject';
|
|
2
3
|
/**
|
|
3
4
|
* Props for the CometChatFullScreenViewer component.
|
|
4
5
|
*/
|
|
5
6
|
interface FullScreenViewerProps {
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated
|
|
8
|
-
* Use 'url' prop instead. This prop is deprecated and will be removed in future versions.
|
|
9
|
-
* */
|
|
10
|
-
URL?: string;
|
|
11
7
|
/**
|
|
12
8
|
* URL of the image to be displayed
|
|
13
9
|
*/
|
|
@@ -20,6 +16,10 @@ interface FullScreenViewerProps {
|
|
|
20
16
|
* The media message containing the image.
|
|
21
17
|
*/
|
|
22
18
|
message: CometChat.MediaMessage;
|
|
19
|
+
/**
|
|
20
|
+
* Format for timestamps associated with images in the message list.
|
|
21
|
+
*/
|
|
22
|
+
imageSentAtDateTimeFormat?: CalendarObject;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* CometChatFullScreenViewer is a full-screen image viewer component with a customizable close button.
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { CometChatUIKitCalls } from "../../CometChatUIKit/CometChatCalls";
|
|
2
|
+
import { CalendarObject } from "../../utils/CalendarObject";
|
|
2
3
|
import { CallButtonConfiguration } from "./CallButtonConfiguration";
|
|
3
4
|
export declare class CallingConfiguration {
|
|
4
5
|
groupCallSettingsBuilder?: (message: CometChat.CustomMessage) => typeof CometChatUIKitCalls.CallSettingsBuilder;
|
|
5
6
|
callButtonConfiguration?: CallButtonConfiguration;
|
|
7
|
+
callInitiatedDateTimeFormat?: CalendarObject;
|
|
6
8
|
constructor(configuration?: CallingConfiguration);
|
|
7
9
|
}
|
|
@@ -3,6 +3,7 @@ import { DataSourceDecorator } from "../../utils/DataSourceDecorator";
|
|
|
3
3
|
import { CallingConfiguration } from "./CallingConfiguration";
|
|
4
4
|
import { MessageBubbleAlignment } from "../../Enums/Enums";
|
|
5
5
|
import { CometChatMessageTemplate } from "../../modals";
|
|
6
|
+
import { CalendarObject } from "../../utils/CalendarObject";
|
|
6
7
|
export declare class CallingExtensionDecorator extends DataSourceDecorator {
|
|
7
8
|
loggedInUser: CometChat.User | null;
|
|
8
9
|
configuration?: CallingConfiguration;
|
|
@@ -18,6 +19,11 @@ export declare class CallingExtensionDecorator extends DataSourceDecorator {
|
|
|
18
19
|
getDirectCallTemplate(): CometChatMessageTemplate;
|
|
19
20
|
getDefaultCallTemplate(): CometChatMessageTemplate[];
|
|
20
21
|
getSessionId(_message: CometChat.CustomMessage): any;
|
|
22
|
+
/**
|
|
23
|
+
* Function for displaying the call initiation time in call logs.
|
|
24
|
+
* @returns CalendarObject
|
|
25
|
+
*/
|
|
26
|
+
getDateFormat(): CalendarObject;
|
|
21
27
|
getDirectCallMessageBubble(_message: CometChat.CustomMessage, _alignment: MessageBubbleAlignment): import("react/jsx-runtime").JSX.Element;
|
|
22
28
|
startDirectCall(sessionId: string, message: CometChat.CustomMessage): void;
|
|
23
29
|
getCallActionMessage(_message: CometChat.Call): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { CalendarObject } from "../../../utils/CalendarObject";
|
|
3
3
|
interface CallLogsProps {
|
|
4
4
|
/**
|
|
5
5
|
* Object representing the active call that is currently selected.
|
|
@@ -11,9 +11,9 @@ interface CallLogsProps {
|
|
|
11
11
|
*/
|
|
12
12
|
callLogRequestBuilder?: any;
|
|
13
13
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
* Format for displaying the call initiation time in call logs.
|
|
15
|
+
*/
|
|
16
|
+
callInitiatedDateTimeFormat?: CalendarObject;
|
|
17
17
|
/**
|
|
18
18
|
* Callback function triggered when a call log list item is clicked.
|
|
19
19
|
* @returns void
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export declare function isSentByMe(call: CometChat.Call | any, loggedInUser: CometChat.User): boolean;
|
|
2
2
|
export declare function isMissedCall(call: CometChat.Call, loggedInUser: CometChat.User): boolean;
|
|
3
3
|
export declare function verifyCallUser(call: any, loggedInUser: CometChat.User): any;
|
|
4
|
-
export declare function getCallStatusWithType(call: any, loggedInUser: CometChat.User, includeType?: boolean): string;
|
|
5
4
|
export declare function convertMinutesToHoursMinutesSeconds(minutes: number): string;
|
|
6
5
|
export declare function convertSecondsToHoursMinutesSeconds(seconds: number): string;
|
|
7
6
|
export declare function downloadRecordingFromURL(url: string): void;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { JSX } from "react";
|
|
2
2
|
import { CometChatTextFormatter } from "../../formatters/CometChatFormatters/CometChatTextFormatter";
|
|
3
|
-
import {
|
|
3
|
+
import { SelectionMode, States } from "../../Enums/Enums";
|
|
4
4
|
import { CometChatOption } from "../../modals";
|
|
5
|
+
import { CalendarObject } from "../../utils/CalendarObject";
|
|
5
6
|
interface ConversationsProps {
|
|
6
7
|
/**
|
|
7
8
|
* Disables the display of message read receipts.
|
|
@@ -63,9 +64,9 @@ interface ConversationsProps {
|
|
|
63
64
|
*/
|
|
64
65
|
options?: ((conversation: CometChat.Conversation) => CometChatOption[]) | null;
|
|
65
66
|
/**
|
|
66
|
-
*
|
|
67
|
+
* Format for displaying the timestamp of the last message in the conversations list.
|
|
67
68
|
*/
|
|
68
|
-
|
|
69
|
+
lastMessageDateTimeFormat?: CalendarObject;
|
|
69
70
|
/**
|
|
70
71
|
* Disables sound for incoming messages.
|
|
71
72
|
*
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { JSX } from "react";
|
|
2
|
+
import { CalendarObject } from "../../utils/CalendarObject";
|
|
2
3
|
/**
|
|
3
4
|
* Interface for the props accepted by the CometChatMessageHeader component.
|
|
4
5
|
*/
|
|
@@ -84,6 +85,10 @@ interface MessageHeaderProps {
|
|
|
84
85
|
* A function that renders a JSX element to display the trailing view.
|
|
85
86
|
*/
|
|
86
87
|
trailingView?: JSX.Element;
|
|
88
|
+
/**
|
|
89
|
+
* Format for displaying the "last active" timestamp in the message header.
|
|
90
|
+
*/
|
|
91
|
+
lastActiveAtDateTimeFormat?: CalendarObject;
|
|
87
92
|
}
|
|
88
93
|
/** Functional component for rendering the CometChatMessageHeader */
|
|
89
94
|
export declare const CometChatMessageHeader: (props: MessageHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CalendarObject } from "../../utils/CalendarObject";
|
|
1
2
|
interface MessageInformationProps {
|
|
2
3
|
message: CometChat.BaseMessage;
|
|
3
4
|
onClose?: () => void;
|
|
@@ -6,6 +7,14 @@ interface MessageInformationProps {
|
|
|
6
7
|
* @param error - CometChatException object representing the error.
|
|
7
8
|
*/
|
|
8
9
|
onError?: ((error: CometChat.CometChatException) => void) | null;
|
|
10
|
+
/**
|
|
11
|
+
* Format for timestamps displayed in message details (e.g., delivery or read time).
|
|
12
|
+
*/
|
|
13
|
+
messageInfoDateTimeFormat?: CalendarObject;
|
|
14
|
+
/**
|
|
15
|
+
* Format for the timestamp displayed next to messages.
|
|
16
|
+
*/
|
|
17
|
+
messageSentAtDateTimeFormat?: CalendarObject;
|
|
9
18
|
}
|
|
10
19
|
declare const CometChatMessageInformation: (props: MessageInformationProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
20
|
export { CometChatMessageInformation };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CometChatMessageTemplate } from "../../modals";
|
|
3
|
-
import {
|
|
3
|
+
import { MessageListAlignment } from "../../Enums/Enums";
|
|
4
4
|
import { CometChatTextFormatter } from "../../formatters/CometChatFormatters/CometChatTextFormatter";
|
|
5
|
+
import { CalendarObject } from "../../utils/CalendarObject";
|
|
5
6
|
/**
|
|
6
7
|
* Props for the MessageList component.
|
|
7
8
|
*/
|
|
@@ -119,14 +120,6 @@ interface MessageListProps {
|
|
|
119
120
|
* @default MessageListAlignment.standard
|
|
120
121
|
*/
|
|
121
122
|
messageAlignment?: MessageListAlignment;
|
|
122
|
-
/**
|
|
123
|
-
* User-defined time format for displaying message timestamps.
|
|
124
|
-
*/
|
|
125
|
-
timePattern?: DatePatterns;
|
|
126
|
-
/**
|
|
127
|
-
* User-defined date format for displaying message timestamps.
|
|
128
|
-
*/
|
|
129
|
-
datePattern?: DatePatterns;
|
|
130
123
|
/**
|
|
131
124
|
* Automatically scrolls the message list to the bottom when a new message arrives.
|
|
132
125
|
* @default false
|
|
@@ -205,6 +198,22 @@ interface MessageListProps {
|
|
|
205
198
|
* A custom footer view component for the message list.
|
|
206
199
|
*/
|
|
207
200
|
footerView?: JSX.Element;
|
|
201
|
+
/**
|
|
202
|
+
* Format for the date separators in the message list.
|
|
203
|
+
*/
|
|
204
|
+
separatorDateTimeFormat?: CalendarObject;
|
|
205
|
+
/**
|
|
206
|
+
* Format for sticky date headers displayed in the message list.
|
|
207
|
+
*/
|
|
208
|
+
stickyDateTimeFormat?: CalendarObject;
|
|
209
|
+
/**
|
|
210
|
+
* Format for the timestamp displayed next to messages.
|
|
211
|
+
*/
|
|
212
|
+
messageSentAtDateTimeFormat?: CalendarObject;
|
|
213
|
+
/**
|
|
214
|
+
* Format for timestamps displayed in message details (e.g., delivery or read time).
|
|
215
|
+
*/
|
|
216
|
+
messageInfoDateTimeFormat?: CalendarObject;
|
|
208
217
|
}
|
|
209
218
|
declare const CometChatMessageList: (props: MessageListProps) => import("react/jsx-runtime").JSX.Element;
|
|
210
219
|
export { CometChatMessageList };
|