@cometchat/chat-uikit-angular 5.0.2 → 5.0.4
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/fesm2022/cometchat-chat-uikit-angular.mjs +5140 -1535
- package/fesm2022/cometchat-chat-uikit-angular.mjs.map +1 -1
- package/package.json +3 -2
- package/src/lib/assets/notifications_empty_state.svg +8 -0
- package/styles/rich-text-styles.css +80 -16
- package/types/cometchat-chat-uikit-angular.d.ts +883 -30
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cometchat/chat-uikit-angular",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.4",
|
|
4
4
|
"license": "https://www.cometchat.com/legal-terms-of-service",
|
|
5
5
|
"homepage": "https://www.cometchat.com",
|
|
6
6
|
"repository": "https://github.com/cometchat/cometchat-uikit-angular",
|
|
@@ -26,8 +26,9 @@
|
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"@angular/common": ">=17.0.0 <22.0.0",
|
|
28
28
|
"@angular/core": ">=17.0.0 <22.0.0",
|
|
29
|
-
"@cometchat/chat-sdk-javascript": "^4.1.
|
|
29
|
+
"@cometchat/chat-sdk-javascript": "^4.1.12",
|
|
30
30
|
"@cometchat/calls-sdk-javascript": "^5.0.0",
|
|
31
|
+
"@cometchat/cards-angular": "^1.0.0",
|
|
31
32
|
"dompurify": "^3.0.0"
|
|
32
33
|
},
|
|
33
34
|
"peerDependenciesMeta": {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg preserveAspectRatio="none" width="100%" height="100%" overflow="visible" style="display: block;" viewBox="0 0 100 97" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="empty inox">
|
|
3
|
+
<path id="Vector" fill-rule="evenodd" clip-rule="evenodd" d="M80.668 29.5988C79.9126 28.5923 78.7274 28 77.4689 28H22.5311C21.2726 28 20.0874 28.5923 19.332 29.5988L5.84197 47.5713C5.29692 48.2974 5.01514 49.1874 5.04293 50.0949L6.07625 83.8355C6.14241 85.9959 7.91291 87.713 10.0744 87.713H89.9265C92.088 87.713 93.8585 85.9958 93.9247 83.8353L94.9571 50.0949C94.9849 49.1874 94.7031 48.2974 94.1581 47.5713L80.668 29.5988ZM63.361 48.693C61.1519 48.693 59.4382 50.5634 58.5213 52.5732C57.0466 55.8059 53.786 58.052 50.001 58.052C46.2153 58.052 42.9545 55.8059 41.4797 52.5732C40.5628 50.5634 38.8491 48.693 36.64 48.693H18.978C15.6811 48.693 13.7998 44.9285 15.779 42.2917L21.495 34.6767C22.2504 33.6703 23.4355 33.078 24.694 33.078H32.851H67.168H75.325C76.5835 33.078 77.7686 33.6703 78.524 34.6767L84.24 42.2917C86.2192 44.9285 84.3379 48.693 81.041 48.693H63.361Z" fill="var(--fill-0, #A4A7AE)"/>
|
|
4
|
+
<path id="bar" d="M49 1C49 0.447716 49.4477 0 50 0V0C50.5523 0 51 0.447715 51 1V23C51 23.5523 50.5523 24 50 24V24C49.4477 24 49 23.5523 49 23V1Z" fill="var(--fill-0, #A4A7AE)"/>
|
|
5
|
+
<path id="bar_2" d="M19.7071 8.12129C19.3166 7.73077 19.3166 7.0976 19.7071 6.70708V6.70708C20.0976 6.31655 20.7308 6.31655 21.1213 6.70708L36.6777 22.2634C37.0682 22.654 37.0682 23.2871 36.6777 23.6776V23.6776C36.2871 24.0682 35.654 24.0682 35.2635 23.6776L19.7071 8.12129Z" fill="var(--fill-0, #A4A7AE)"/>
|
|
6
|
+
<path id="bar_3" d="M80.6777 8.12129C81.0682 7.73077 81.0682 7.0976 80.6777 6.70708V6.70708C80.2871 6.31655 79.654 6.31655 79.2634 6.70708L63.7071 22.2634C63.3166 22.654 63.3166 23.2871 63.7071 23.6776V23.6776C64.0976 24.0682 64.7308 24.0682 65.1213 23.6776L80.6777 8.12129Z" fill="var(--fill-0, #A4A7AE)"/>
|
|
7
|
+
</g>
|
|
8
|
+
</svg>
|
|
@@ -12,7 +12,21 @@ code.cometchat-rich-text__code {
|
|
|
12
12
|
padding: var(--cometchat-spacing) var(--cometchat-spacing-1);
|
|
13
13
|
border-radius: var(--cometchat-radius-1);
|
|
14
14
|
}
|
|
15
|
+
/* Nested ordered list cycling: decimal → lower-alpha → lower-roman */
|
|
16
|
+
.cometchat-text-bubble__content ol ol {
|
|
17
|
+
list-style-type: lower-alpha;
|
|
18
|
+
}
|
|
19
|
+
.cometchat-text-bubble__content ol ol ol {
|
|
20
|
+
list-style-type: lower-roman;
|
|
21
|
+
}
|
|
15
22
|
|
|
23
|
+
/* Nested unordered list cycling: disc → circle → square */
|
|
24
|
+
.cometchat-text-bubble__content ul ul {
|
|
25
|
+
list-style-type: circle;
|
|
26
|
+
}
|
|
27
|
+
.cometchat-text-bubble__content ul ul ul {
|
|
28
|
+
list-style-type: square;
|
|
29
|
+
}
|
|
16
30
|
/* Reset rich text element spacing inside subtitle preview */
|
|
17
31
|
.cometchat-message-composer__reply-preview p,
|
|
18
32
|
.cometchat-message-composer__reply-preview blockquote,
|
|
@@ -51,6 +65,9 @@ code.cometchat-rich-text__code {
|
|
|
51
65
|
scrollbar-width: none; /* Firefox */
|
|
52
66
|
-ms-overflow-style: none; /* IE/Edge */
|
|
53
67
|
}
|
|
68
|
+
.cometchat-rich-text-editor__content p{
|
|
69
|
+
margin: 0;
|
|
70
|
+
}
|
|
54
71
|
.cometchat-rich-text-editor__content::-webkit-scrollbar {
|
|
55
72
|
display: none; /* Chrome/Safari */
|
|
56
73
|
}
|
|
@@ -61,7 +78,20 @@ code.cometchat-rich-text__code {
|
|
|
61
78
|
.cometchat-rich-text__code-block{
|
|
62
79
|
background: var(--cometchat-neutral-color-100);
|
|
63
80
|
margin: 0;
|
|
81
|
+
padding: var(--cometchat-spacing-2) var(--cometchat-spacing-3);
|
|
82
|
+
display: block;
|
|
83
|
+
line-height: 1.5;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* Reset inline code styles when <code> is inside a <pre> code block */
|
|
87
|
+
.cometchat-rich-text__code-block .cometchat-rich-text__code,
|
|
88
|
+
.cometchat-rich-text__code-block code {
|
|
89
|
+
background: transparent;
|
|
90
|
+
color: inherit;
|
|
64
91
|
padding: 0;
|
|
92
|
+
border-radius: 0;
|
|
93
|
+
font-size: inherit;
|
|
94
|
+
vertical-align: baseline;
|
|
65
95
|
}
|
|
66
96
|
.cometchat-rich-text-editor__content:focus-visible{
|
|
67
97
|
outline: none;
|
|
@@ -70,11 +100,28 @@ code.cometchat-rich-text__code {
|
|
|
70
100
|
padding-left: var(--cometchat-padding-8);
|
|
71
101
|
margin: 0;
|
|
72
102
|
}
|
|
103
|
+
/* Nested ordered list cycling in composer: decimal → lower-alpha → lower-roman */
|
|
104
|
+
.cometchat-rich-text-editor__content ol ol {
|
|
105
|
+
list-style-type: lower-alpha;
|
|
106
|
+
}
|
|
107
|
+
.cometchat-rich-text-editor__content ol ol ol {
|
|
108
|
+
list-style-type: lower-roman;
|
|
109
|
+
}
|
|
110
|
+
/* Nested unordered list cycling in composer: disc → circle → square */
|
|
111
|
+
.cometchat-rich-text-editor__content ul ul {
|
|
112
|
+
list-style-type: circle;
|
|
113
|
+
}
|
|
114
|
+
.cometchat-rich-text-editor__content ul ul ul {
|
|
115
|
+
list-style-type: square;
|
|
116
|
+
}
|
|
73
117
|
.cometchat-rich-text__blockquote{
|
|
74
|
-
|
|
75
|
-
|
|
118
|
+
display: block;
|
|
119
|
+
margin: var(--cometchat-rich-text-blockquote-margin, var(--cometchat-spacing-1) 0);
|
|
120
|
+
padding: var(--cometchat-rich-text-blockquote-padding, var(--cometchat-spacing-2) var(--cometchat-spacing-3));
|
|
76
121
|
border-left: var(--cometchat-rich-text-blockquote-border-left, 4px solid var(--cometchat-neutral-color-400));
|
|
77
122
|
color: var(--cometchat-rich-text-blockquote-color, var(--cometchat-text-color-secondary));
|
|
123
|
+
background: var(--cometchat-background-color-02, rgba(0,0,0,0.04));
|
|
124
|
+
border-radius: 0 var(--cometchat-radius-1) var(--cometchat-radius-1) 0;
|
|
78
125
|
}
|
|
79
126
|
|
|
80
127
|
/* ============================================
|
|
@@ -92,20 +139,34 @@ code.cometchat-rich-text__code {
|
|
|
92
139
|
border-radius: var(--cometchat-radius-1);
|
|
93
140
|
}
|
|
94
141
|
|
|
142
|
+
/* Inline code in incoming messages — exclude code inside pre (code blocks) */
|
|
143
|
+
.cometchat-text-bubble-incoming .cometchat-text-bubble__content code:not(pre code),
|
|
144
|
+
.cometchat-text-bubble.cometchat-text-bubble-incoming .cometchat-text-bubble__content code:not(pre code) {
|
|
145
|
+
background: var(--cometchat-extended-primary-color-100);
|
|
146
|
+
color: var(--cometchat-primary-color);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* Inline code in outgoing messages — exclude code inside pre (code blocks) */
|
|
150
|
+
.cometchat-text-bubble-outgoing .cometchat-text-bubble__content code:not(pre code),
|
|
151
|
+
.cometchat-text-bubble.cometchat-text-bubble-outgoing .cometchat-text-bubble__content code:not(pre code) {
|
|
152
|
+
background: rgba(255, 255, 255, 0.2);
|
|
153
|
+
color: var(--cometchat-static-white);
|
|
154
|
+
}
|
|
95
155
|
|
|
96
156
|
|
|
157
|
+
.cometchat-message-composer__edit-preview-subtitle * {
|
|
158
|
+
margin: 0;
|
|
159
|
+
}
|
|
97
160
|
/**
|
|
98
161
|
* Code blocks
|
|
99
162
|
*/
|
|
100
163
|
.cometchat-text-bubble__content pre {
|
|
101
|
-
padding: var(--cometchat-spacing-3);
|
|
102
164
|
border-radius: var(--cometchat-radius-2);
|
|
103
165
|
overflow-x: auto;
|
|
104
166
|
max-width: 100%;
|
|
105
|
-
margin: var(--cometchat-spacing-
|
|
167
|
+
margin: var(--cometchat-spacing-1) 0;
|
|
168
|
+
padding: var(--cometchat-spacing-2) var(--cometchat-spacing-3);
|
|
106
169
|
white-space: pre;
|
|
107
|
-
margin: 0;
|
|
108
|
-
padding: 0;
|
|
109
170
|
}
|
|
110
171
|
|
|
111
172
|
/* Code blocks in incoming messages */
|
|
@@ -126,33 +187,36 @@ code.cometchat-rich-text__code {
|
|
|
126
187
|
background: transparent;
|
|
127
188
|
padding: 0;
|
|
128
189
|
border-radius: 0;
|
|
129
|
-
display:
|
|
130
|
-
|
|
131
|
-
width: fit-content;
|
|
190
|
+
display: block;
|
|
191
|
+
color: inherit;
|
|
132
192
|
}
|
|
133
193
|
|
|
134
194
|
/**
|
|
135
195
|
* Blockquote
|
|
136
196
|
*/
|
|
137
197
|
.cometchat-text-bubble__content blockquote {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
198
|
+
display: block;
|
|
199
|
+
margin: var(--cometchat-spacing-1) 0;
|
|
200
|
+
padding: var(--cometchat-spacing-2) var(--cometchat-spacing-3);
|
|
201
|
+
border-left: 4px solid;
|
|
202
|
+
border-radius: 0 var(--cometchat-radius-1) var(--cometchat-radius-1) 0;
|
|
203
|
+
font-style: normal;
|
|
142
204
|
}
|
|
143
205
|
|
|
144
206
|
/* Blockquote in incoming messages */
|
|
145
207
|
.cometchat-text-bubble-incoming .cometchat-text-bubble__content blockquote,
|
|
146
208
|
.cometchat-text-bubble.cometchat-text-bubble-incoming .cometchat-text-bubble__content blockquote {
|
|
147
|
-
border-left-color: var(--cometchat-neutral-color-
|
|
148
|
-
color: var(--cometchat-
|
|
209
|
+
border-left-color: var(--cometchat-neutral-color-400);
|
|
210
|
+
color: var(--cometchat-text-color-secondary);
|
|
211
|
+
background: var(--cometchat-background-color-02);
|
|
149
212
|
}
|
|
150
213
|
|
|
151
214
|
/* Blockquote in outgoing messages */
|
|
152
215
|
.cometchat-text-bubble-outgoing .cometchat-text-bubble__content blockquote,
|
|
153
216
|
.cometchat-text-bubble.cometchat-text-bubble-outgoing .cometchat-text-bubble__content blockquote {
|
|
154
|
-
border-left-color: rgba(255, 255, 255, 0.
|
|
217
|
+
border-left-color: rgba(255, 255, 255, 0.6);
|
|
155
218
|
color: rgba(255, 255, 255, 0.9);
|
|
219
|
+
background: rgba(255, 255, 255, 0.15);
|
|
156
220
|
}
|
|
157
221
|
|
|
158
222
|
/**
|