@cometchat/chat-uikit-angular 5.0.0-beta.2 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cometchat/chat-uikit-angular",
3
- "version": "5.0.0-beta.2",
3
+ "version": "5.0.0",
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,7 +26,14 @@
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.8"
29
+ "@cometchat/chat-sdk-javascript": "^4.1.8",
30
+ "@cometchat/calls-sdk-javascript": "^5.0.0",
31
+ "dompurify": "^3.0.0"
32
+ },
33
+ "peerDependenciesMeta": {
34
+ "@cometchat/calls-sdk-javascript": {
35
+ "optional": true
36
+ }
30
37
  },
31
38
  "dependencies": {
32
39
  "tslib": "^2.3.0"
@@ -44,5 +51,6 @@
44
51
  "types": "./types/cometchat-chat-uikit-angular.d.ts",
45
52
  "default": "./fesm2022/cometchat-chat-uikit-angular.mjs"
46
53
  }
47
- }
54
+ },
55
+ "type": "module"
48
56
  }
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 -960 960 960" width="24" fill="black">
2
+ <path d="M80-80v-720q0-33 23.5-56.5T160-880h404q-4 20-4 40t4 40H160v480l46-40h514v-253q21-3 40-11t40-21v285q0 33-23.5 56.5T720-280H240L80-80Zm80-280v-400h404 0H160Zm600-280q-50 0-85-35t-35-85q0-50 35-85t85-35q50 0 85 35t35 85q0 50-35 85t-85 35Z"/>
3
+ </svg>
@@ -7,72 +7,92 @@
7
7
 
8
8
  @font-face {
9
9
  font-family: 'Roboto';
10
- src: url('./fonts/Roboto/Roboto-Black.ttf') format('truetype');
10
+ src: url('./fonts/Roboto/Roboto-Black.woff2') format('woff2'),
11
+ url('./fonts/Roboto/Roboto-Black.ttf') format('truetype');
11
12
  font-weight: 900;
12
13
  font-style: normal;
14
+ font-display: swap;
13
15
  }
14
16
 
15
17
  @font-face {
16
18
  font-family: 'Roboto';
17
- src: url('./fonts/Roboto/Roboto-BlackItalic.ttf') format('truetype');
19
+ src: url('./fonts/Roboto/Roboto-BlackItalic.woff2') format('woff2'),
20
+ url('./fonts/Roboto/Roboto-BlackItalic.ttf') format('truetype');
18
21
  font-weight: 900;
19
22
  font-style: italic;
23
+ font-display: swap;
20
24
  }
21
25
 
22
26
  @font-face {
23
27
  font-family: 'Roboto';
24
- src: url('./fonts/Roboto/Roboto-Bold.ttf') format('truetype');
28
+ src: url('./fonts/Roboto/Roboto-Bold.woff2') format('woff2'),
29
+ url('./fonts/Roboto/Roboto-Bold.ttf') format('truetype');
25
30
  font-weight: 700;
26
31
  font-style: normal;
32
+ font-display: swap;
27
33
  }
28
34
 
29
35
  @font-face {
30
36
  font-family: 'Roboto';
31
- src: url('./fonts/Roboto/Roboto-BoldItalic.ttf') format('truetype');
37
+ src: url('./fonts/Roboto/Roboto-BoldItalic.woff2') format('woff2'),
38
+ url('./fonts/Roboto/Roboto-BoldItalic.ttf') format('truetype');
32
39
  font-weight: 700;
33
40
  font-style: italic;
41
+ font-display: swap;
34
42
  }
35
43
 
36
44
  @font-face {
37
45
  font-family: 'Roboto';
38
- src: url('./fonts/Roboto/Roboto-Regular.ttf') format('truetype');
46
+ src: url('./fonts/Roboto/Roboto-Regular.woff2') format('woff2'),
47
+ url('./fonts/Roboto/Roboto-Regular.ttf') format('truetype');
39
48
  font-weight: 400;
40
49
  font-style: normal;
50
+ font-display: swap;
41
51
  }
42
52
 
43
53
  @font-face {
44
54
  font-family: 'Roboto';
45
- src: url('./fonts/Roboto/Roboto-Italic.ttf') format('truetype');
55
+ src: url('./fonts/Roboto/Roboto-Italic.woff2') format('woff2'),
56
+ url('./fonts/Roboto/Roboto-Italic.ttf') format('truetype');
46
57
  font-weight: 400;
47
58
  font-style: italic;
59
+ font-display: swap;
48
60
  }
49
61
 
50
62
  @font-face {
51
63
  font-family: 'Roboto';
52
- src: url('./fonts/Roboto/Roboto-Light.ttf') format('truetype');
64
+ src: url('./fonts/Roboto/Roboto-Light.woff2') format('woff2'),
65
+ url('./fonts/Roboto/Roboto-Light.ttf') format('truetype');
53
66
  font-weight: 300;
54
67
  font-style: normal;
68
+ font-display: swap;
55
69
  }
56
70
 
57
71
  @font-face {
58
72
  font-family: 'Roboto';
59
- src: url('./fonts/Roboto/Roboto-LightItalic.ttf') format('truetype');
73
+ src: url('./fonts/Roboto/Roboto-LightItalic.woff2') format('woff2'),
74
+ url('./fonts/Roboto/Roboto-LightItalic.ttf') format('truetype');
60
75
  font-weight: 300;
61
76
  font-style: italic;
77
+ font-display: swap;
62
78
  }
63
79
 
64
80
  @font-face {
65
81
  font-family: 'Roboto';
66
- src: url('./fonts/Roboto/Roboto-Medium.ttf') format('truetype');
82
+ src: url('./fonts/Roboto/Roboto-Medium.woff2') format('woff2'),
83
+ url('./fonts/Roboto/Roboto-Medium.ttf') format('truetype');
67
84
  font-weight: 500;
68
85
  font-style: normal;
86
+ font-display: swap;
69
87
  }
70
88
 
71
89
  @font-face {
72
90
  font-family: 'Roboto';
73
- src: url('./fonts/Roboto/Roboto-MediumItalic.ttf') format('truetype');
91
+ src: url('./fonts/Roboto/Roboto-MediumItalic.woff2') format('woff2'),
92
+ url('./fonts/Roboto/Roboto-MediumItalic.ttf') format('truetype');
74
93
  font-weight: 500;
75
94
  font-style: italic;
95
+ font-display: swap;
76
96
  }
77
97
  /* Links in subtitle */
78
98
  .cometchat-link{
@@ -230,7 +250,7 @@
230
250
  --cometchat-neutral-color-200: #F5F5F5;
231
251
  --cometchat-neutral-color-300: #E8E8E8;
232
252
  --cometchat-neutral-color-400: #DCDCDC;
233
- --cometchat-neutral-color-500: #A1A1A1;
253
+ --cometchat-neutral-color-500: #707070;
234
254
  --cometchat-neutral-color-600: #727272;
235
255
  --cometchat-neutral-color-700: #5B5B5B;
236
256
  --cometchat-neutral-color-800: #434343;
@@ -420,7 +440,7 @@ Define border colors for UI elements,
420
440
  --cometchat-neutral-color-200: #272727;
421
441
  --cometchat-neutral-color-300: #383838;
422
442
  --cometchat-neutral-color-400: #4C4C4C;
423
- --cometchat-neutral-color-500: #858585;
443
+ --cometchat-neutral-color-500: #9E9E9E;
424
444
  --cometchat-neutral-color-600: #989898;
425
445
  --cometchat-neutral-color-700: #A8A8A8;
426
446
  --cometchat-neutral-color-800: #C8C8C8;
@@ -12,6 +12,30 @@ 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
+
16
+ /* Reset rich text element spacing inside subtitle preview */
17
+ .cometchat-message-composer__reply-preview p,
18
+ .cometchat-message-composer__reply-preview blockquote,
19
+ .cometchat-message-composer__reply-preview pre,
20
+ .cometchat-message-composer__reply-preview code,
21
+ .cometchat-message-composer__reply-preview ul,
22
+ .cometchat-message-composer__reply-preview ol,
23
+ .cometchat-message-composer__reply-preview li,
24
+ .cometchat-message-composer__reply-preview h1,
25
+ .cometchat-message-composer__reply-preview h2,
26
+ .cometchat-message-composer__reply-preview h3,
27
+ .cometchat-message-composer__reply-preview h4,
28
+ .cometchat-message-composer__reply-preview h5,
29
+ .cometchat-message-composer__reply-preview h6 {
30
+ margin: 0;
31
+ padding: 0;
32
+ display: inline;
33
+ font: inherit;
34
+ color: inherit;
35
+ border: none;
36
+ background: none;
37
+ white-space: nowrap;
38
+ }
15
39
  .cometchat-conversation-item__subtitle-text ol , .cometchat-conversation-item__subtitle-text ul{
16
40
  margin: 0;
17
41
  padding: 0;