stream-chat-angular 5.3.0 → 5.3.1
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/assets/version.d.ts +1 -1
- package/esm2020/assets/version.mjs +2 -2
- package/esm2020/lib/channel-list/channel-list.component.mjs +5 -8
- package/fesm2015/stream-chat-angular.mjs +4 -7
- package/fesm2015/stream-chat-angular.mjs.map +1 -1
- package/fesm2020/stream-chat-angular.mjs +4 -7
- package/fesm2020/stream-chat-angular.mjs.map +1 -1
- package/lib/channel-list/channel-list.component.d.ts +0 -1
- package/package.json +1 -1
- package/src/assets/styles/css/emoji-replacement.css +1 -1
- package/src/assets/styles/css/index.css +2 -2
- package/src/assets/styles/css/index.layout.css +2 -2
- package/src/assets/styles/scss/Autocomplete/Autocomplete-theme.scss +4 -2
- package/src/assets/styles/scss/Avatar/Avatar-layout.scss +38 -22
- package/src/assets/styles/scss/Avatar/Avatar-theme.scss +5 -0
- package/src/assets/styles/scss/Channel/Channel-layout.scss +0 -4
- package/src/assets/styles/scss/ChannelList/ChannelList-layout.scss +11 -5
- package/src/assets/styles/scss/ChannelSearch/ChannelSearch-layout.scss +1 -0
- package/src/assets/styles/scss/ChatView/ChatView-layout.scss +43 -0
- package/src/assets/styles/scss/ChatView/ChatView-theme.scss +32 -0
- package/src/assets/styles/scss/Dialog/Dialog-layout.scss +8 -0
- package/src/assets/styles/scss/Message/Message-layout.scss +8 -0
- package/src/assets/styles/scss/MessageList/MessageList-layout.scss +0 -6
- package/src/assets/styles/scss/MessageList/VirtualizedMessageList-layout.scss +0 -12
- package/src/assets/styles/scss/MessageReactions/MessageReactionsSelector-layout.scss +16 -0
- package/src/assets/styles/scss/Thread/Thread-layout.scss +13 -4
- package/src/assets/styles/scss/ThreadList/ThreadList-layout.scss +152 -0
- package/src/assets/styles/scss/ThreadList/ThreadList-theme.scss +75 -0
- package/src/assets/styles/scss/UnreadCountBadge/UnreadCountBadge-layout.scss +49 -0
- package/src/assets/styles/scss/UnreadCountBadge/UnreadCountBadge-theme.scss +11 -0
- package/src/assets/styles/scss/_base.scss +4 -0
- package/src/assets/styles/scss/_emoji-replacement.scss +4 -2
- package/src/assets/styles/scss/index.layout.scss +4 -0
- package/src/assets/styles/scss/index.scss +3 -0
- package/src/assets/version.ts +1 -1
- package/src/assets/assets/Poweredby_100px-White_VertText.png +0 -0
- package/src/assets/assets/str-chat__reaction-list-sprite@1x.png +0 -0
- package/src/assets/assets/str-chat__reaction-list-sprite@2x.png +0 -0
- package/src/assets/assets/str-chat__reaction-list-sprite@3x.png +0 -0
|
@@ -1,30 +1,67 @@
|
|
|
1
1
|
.str-chat {
|
|
2
|
-
/* The size of the avatar, only available in Angular v5+ */
|
|
3
2
|
--str-chat__avatar-size: calc(var(--str-chat__spacing-px) * 32);
|
|
4
3
|
|
|
4
|
+
.str-chat__avatar--autocomplete-item,
|
|
5
5
|
.stream-chat__avatar--autocomplete-item {
|
|
6
6
|
--str-chat__avatar-size: calc(var(--str-chat__spacing-px) * 30);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
.str-chat__avatar--channel-header,
|
|
9
10
|
.stream-chat__avatar--channel-header {
|
|
10
11
|
--str-chat__avatar-size: calc(var(--str-chat__spacing-px) * 40);
|
|
11
12
|
}
|
|
12
13
|
|
|
14
|
+
.str-chat__avatar--channel-preview,
|
|
13
15
|
.stream-chat__avatar--channel-preview {
|
|
14
16
|
--str-chat__avatar-size: calc(var(--str-chat__spacing-px) * 49);
|
|
15
17
|
}
|
|
16
18
|
|
|
19
|
+
.str-chat__avatar--quoted-message-sender,
|
|
17
20
|
.stream-chat__avatar--quoted-message-sender {
|
|
18
21
|
--str-chat__avatar-size: calc(var(--str-chat__spacing-px) * 20);
|
|
19
22
|
}
|
|
20
23
|
|
|
24
|
+
.str-chat__avatar--reaction,
|
|
21
25
|
.stream-chat__avatar--reaction {
|
|
22
26
|
--str-chat__avatar-size: calc(var(--str-chat__spacing-px) * 30);
|
|
23
27
|
}
|
|
28
|
+
|
|
29
|
+
.str-chat__avatar--message-status,
|
|
30
|
+
.stream-chat__avatar--message-status {
|
|
31
|
+
--str-chat__avatar-size: calc(var(--str-chat__spacing-px) * 15);
|
|
32
|
+
}
|
|
24
33
|
}
|
|
25
34
|
|
|
26
35
|
.str-chat__avatar {
|
|
27
36
|
position: relative;
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
height: var(--str-chat__avatar-size);
|
|
41
|
+
line-height: var(--str-chat__avatar-size);
|
|
42
|
+
width: var(--str-chat__avatar-size);
|
|
43
|
+
min-width: var(--str-chat__avatar-size);
|
|
44
|
+
|
|
45
|
+
&.str-chat__avatar--one-letter,
|
|
46
|
+
&.stream-chat__avatar--one-letter {
|
|
47
|
+
font-size: calc(var(--str-chat__avatar-size) * 0.5);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&.str-chat__avatar--no-letters {
|
|
51
|
+
--str-chat-icon-width: calc(var(--str-chat__avatar-size) * 0.33);
|
|
52
|
+
--str-chat-icon-height: calc(var(--str-chat__avatar-size) * 0.33);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&.str-chat__avatar--multiple-letters,
|
|
56
|
+
&.stream-chat__avatar--multiple-letters {
|
|
57
|
+
font-size: calc(var(--str-chat__avatar-size) * 0.3);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.str-chat__avatar-image {
|
|
61
|
+
height: 100%;
|
|
62
|
+
width: 100%;
|
|
63
|
+
object-fit: cover;
|
|
64
|
+
}
|
|
28
65
|
|
|
29
66
|
.str-chat__avatar-fallback {
|
|
30
67
|
text-align: center;
|
|
@@ -46,24 +83,3 @@
|
|
|
46
83
|
width: calc(var(--str-chat__spacing-px) * 49);
|
|
47
84
|
height: calc(var(--str-chat__spacing-px) * 49);
|
|
48
85
|
}
|
|
49
|
-
|
|
50
|
-
.str-chat-angular__avatar {
|
|
51
|
-
height: var(--str-chat__avatar-size);
|
|
52
|
-
line-height: var(--str-chat__avatar-size);
|
|
53
|
-
width: var(--str-chat__avatar-size);
|
|
54
|
-
|
|
55
|
-
&.stream-chat__avatar--one-letter {
|
|
56
|
-
font-size: calc(var(--str-chat__avatar-size) * 0.5);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
&.stream-chat__avatar--multiple-letters {
|
|
60
|
-
font-size: calc(var(--str-chat__avatar-size) * 0.3);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.str-chat__avatar-image {
|
|
64
|
-
height: 100%;
|
|
65
|
-
width: 100%;
|
|
66
|
-
object-fit: cover;;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
}
|
|
@@ -38,6 +38,11 @@
|
|
|
38
38
|
display: block;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
&.str-chat__avatar--no-letters {
|
|
42
|
+
--str-chat-icon-color: var(--str-chat__avatar-color);
|
|
43
|
+
@include utils.component-layer-overrides('avatar');
|
|
44
|
+
}
|
|
45
|
+
|
|
41
46
|
.str-chat__avatar-fallback {
|
|
42
47
|
@include utils.component-layer-overrides('avatar');
|
|
43
48
|
text-transform: uppercase;
|
|
@@ -34,11 +34,6 @@
|
|
|
34
34
|
@include utils.flex-row-center;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
|
|
38
|
-
// This is displayed only in theme-v1
|
|
39
|
-
.str-chat__down-main {
|
|
40
|
-
display: none;
|
|
41
|
-
}
|
|
42
37
|
}
|
|
43
38
|
|
|
44
39
|
.str-chat__channel-list-react {
|
|
@@ -53,3 +48,14 @@
|
|
|
53
48
|
}
|
|
54
49
|
}
|
|
55
50
|
}
|
|
51
|
+
|
|
52
|
+
.str-chat-angular__channel-list {
|
|
53
|
+
.str-chat__channel-list-messenger__main {
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: column;
|
|
56
|
+
|
|
57
|
+
stream-paginated-list {
|
|
58
|
+
min-height: 0;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
.str-chat__chat-view {
|
|
2
|
+
display: flex;
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
|
|
6
|
+
&__selector {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
padding-inline: 8px;
|
|
10
|
+
padding-block: 16px;
|
|
11
|
+
gap: 20px;
|
|
12
|
+
|
|
13
|
+
&-button {
|
|
14
|
+
--str-chat-icon-height: 20px;
|
|
15
|
+
--str-chat-icon-width: 20px;
|
|
16
|
+
--str-chat-unread-count-badge-absolute-offset-vertical: 25%;
|
|
17
|
+
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
align-items: center;
|
|
21
|
+
padding-inline: 10px;
|
|
22
|
+
padding-block: 10px;
|
|
23
|
+
border-radius: 8px;
|
|
24
|
+
gap: 4px;
|
|
25
|
+
font-weight: 400;
|
|
26
|
+
font-size: 12px;
|
|
27
|
+
line-height: 1;
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
position: relative;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&__channels {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-grow: 1;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&__threads {
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-grow: 1;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* Only available in React SDK. */
|
|
2
|
+
.str-chat {
|
|
3
|
+
--str-chat-selector-background-color: var(--str-chat__secondary-background-color);
|
|
4
|
+
--str-chat-selector-border-color: var(--str-chat__surface-color);
|
|
5
|
+
|
|
6
|
+
--str-chat-selector-button-color-default: var(--str-chat__text-low-emphasis-color);
|
|
7
|
+
--str-chat-selector-button-color-selected: var(--str-chat__text-color);
|
|
8
|
+
--str-chat-selector-button-background-color-default: transparent;
|
|
9
|
+
--str-chat-selector-button-background-color-selected: var(--str-chat__surface-color);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.str-chat__chat-view {
|
|
13
|
+
&__selector {
|
|
14
|
+
border-right: 1px solid var(--str-chat-selector-border-color);
|
|
15
|
+
background-color: var(--str-chat-selector-background-color);
|
|
16
|
+
|
|
17
|
+
&-button {
|
|
18
|
+
--str-chat-icon-color: var(--str-chat-selector-button-color-default);
|
|
19
|
+
|
|
20
|
+
border: none;
|
|
21
|
+
background: var(--str-chat-selector-button-background-color-default);
|
|
22
|
+
color: var(--str-chat-selector-button-color-default);
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
&[aria-selected='true'] {
|
|
26
|
+
--str-chat-icon-color: var(--str-chat-selector-button-color-selected);
|
|
27
|
+
color: var(--str-chat-selector-button-color-selected);
|
|
28
|
+
background: var(--str-chat-selector-button-background-color-selected);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -350,6 +350,14 @@
|
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
|
|
353
|
+
// Message options display - third mode: they appear, when explicitly marked as active
|
|
354
|
+
.str-chat__message-inner {
|
|
355
|
+
.str-chat__message-options.str-chat__message-options--active {
|
|
356
|
+
display: flex;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
|
|
353
361
|
.str-chat__message-inner {
|
|
354
362
|
.str-chat__message-options {
|
|
355
363
|
display: none;
|
|
@@ -55,15 +55,3 @@
|
|
|
55
55
|
padding-block-end: var(--str-chat__spacing-0_5);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
.str-chat__thread--virtualized {
|
|
61
|
-
.str-chat__main-panel-inner {
|
|
62
|
-
height: 100%;
|
|
63
|
-
|
|
64
|
-
// the first message in virtualized thread has to be separated from the top by padding, not margin
|
|
65
|
-
.str-chat__virtual-list-message-wrapper:first-of-type {
|
|
66
|
-
padding-block-start: var(--str-chat__spacing-4);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
@@ -68,3 +68,19 @@
|
|
|
68
68
|
inset-inline-start: 0;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
+
|
|
72
|
+
// the React SDK positions the reaction selector with popperjs
|
|
73
|
+
.str-chat-react__message-reaction-selector {
|
|
74
|
+
position: static;
|
|
75
|
+
inset-block-end: unset;
|
|
76
|
+
|
|
77
|
+
ul {
|
|
78
|
+
margin: 0;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.str-chat__message--me, .str-chat__message--other {
|
|
83
|
+
.str-chat-react__message-reaction-selector {
|
|
84
|
+
inset-inline-start: unset;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@use '../utils';
|
|
2
2
|
|
|
3
|
+
// FIXME: figure out why does this "container" exist when __thread is completely valid
|
|
3
4
|
.str-chat__thread-container {
|
|
4
5
|
height: 100%;
|
|
5
6
|
display: flex;
|
|
@@ -40,15 +41,23 @@
|
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
43
|
}
|
|
44
|
+
}
|
|
43
45
|
|
|
44
|
-
|
|
46
|
+
.str-chat__thread {
|
|
47
|
+
.str-chat__main-panel-inner {
|
|
45
48
|
height: auto;
|
|
46
49
|
}
|
|
47
50
|
}
|
|
48
51
|
|
|
49
|
-
.str-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
+
.str-chat__thread--virtualized {
|
|
53
|
+
.str-chat__main-panel-inner {
|
|
54
|
+
height: 100%;
|
|
55
|
+
|
|
56
|
+
// the first message in virtualized thread has to be separated from the top by padding, not margin
|
|
57
|
+
.str-chat__virtual-list-message-wrapper:first-of-type {
|
|
58
|
+
padding-block-start: var(--str-chat__spacing-4);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
52
61
|
}
|
|
53
62
|
|
|
54
63
|
.str-chat__parent-message-li {
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
.str-chat__thread-list-container {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
flex-grow: 1;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.str-chat__unseen-threads-banner {
|
|
8
|
+
font-size: 16px;
|
|
9
|
+
font-weight: 400;
|
|
10
|
+
|
|
11
|
+
margin: 8px;
|
|
12
|
+
padding: 16px;
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: space-between;
|
|
16
|
+
|
|
17
|
+
&__button {
|
|
18
|
+
--str-chat-icon-width: 16px;
|
|
19
|
+
--str-chat-icon-heigh: 22px;
|
|
20
|
+
|
|
21
|
+
all: unset;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
width: 24px;
|
|
27
|
+
height: 24px;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.str-chat__thread-list {
|
|
32
|
+
.str-chat__thread-list-item {
|
|
33
|
+
align-items: stretch;
|
|
34
|
+
box-sizing: border-box;
|
|
35
|
+
padding-block: 14px;
|
|
36
|
+
padding-inline: 8px;
|
|
37
|
+
gap: 6px;
|
|
38
|
+
width: 100%;
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
|
|
43
|
+
.str-chat__thread-list-item__channel {
|
|
44
|
+
--str-chat-icon-height: 14px;
|
|
45
|
+
--str-chat-icon-width: 14px;
|
|
46
|
+
|
|
47
|
+
display: flex;
|
|
48
|
+
gap: 5px;
|
|
49
|
+
|
|
50
|
+
.str-chat__icon {
|
|
51
|
+
margin-top: 2px;
|
|
52
|
+
flex-shrink: 0;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.str-chat__thread-list-item__thread-status-symbol {
|
|
57
|
+
font-size: 14px;
|
|
58
|
+
line-height: 1;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.str-chat__thread-list-item__channel-text {
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
white-space: nowrap;
|
|
64
|
+
text-overflow: ellipsis;
|
|
65
|
+
font-size: 14px;
|
|
66
|
+
font-weight: 400;
|
|
67
|
+
line-height: 1;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.str-chat__thread-list-item__parent-message {
|
|
71
|
+
display: flex;
|
|
72
|
+
gap: 3px;
|
|
73
|
+
justify-content: space-between;
|
|
74
|
+
align-items: center;
|
|
75
|
+
height: 15px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.str-chat__thread-list-item__parent-message-text {
|
|
79
|
+
font-size: 12px;
|
|
80
|
+
font-weight: 400;
|
|
81
|
+
overflow: hidden;
|
|
82
|
+
white-space: nowrap;
|
|
83
|
+
text-overflow: ellipsis;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.str-chat__thread-list-item__latest-reply {
|
|
87
|
+
--str-chat__avatar-size: 49px;
|
|
88
|
+
|
|
89
|
+
display: flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
gap: 5px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.str-chat__thread-list-item__latest-reply-details {
|
|
95
|
+
display: flex;
|
|
96
|
+
flex-direction: column;
|
|
97
|
+
flex-grow: 1;
|
|
98
|
+
gap: 4px;
|
|
99
|
+
width: 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.str-chat__thread-list-item__latest-reply-created-by {
|
|
103
|
+
font-weight: 500;
|
|
104
|
+
font-size: 16px;
|
|
105
|
+
text-align: left;
|
|
106
|
+
text-overflow: ellipsis;
|
|
107
|
+
white-space: nowrap;
|
|
108
|
+
overflow-x: hidden;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.str-chat__thread-list-item__latest-reply-text-and-timestamp {
|
|
112
|
+
display: flex;
|
|
113
|
+
font-size: 14px;
|
|
114
|
+
font-weight: 400;
|
|
115
|
+
justify-content: space-between;
|
|
116
|
+
align-items: baseline;
|
|
117
|
+
line-height: 16px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.str-chat__thread-list-item__latest-reply-text {
|
|
121
|
+
overflow: hidden;
|
|
122
|
+
white-space: nowrap;
|
|
123
|
+
text-overflow: ellipsis;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.str-chat__thread-list-item__latest-reply-timestamp {
|
|
127
|
+
white-space: nowrap;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.str-chat__thread-list-loading-indicator {
|
|
132
|
+
display: flex;
|
|
133
|
+
align-items: center;
|
|
134
|
+
justify-content: center;
|
|
135
|
+
padding-block: 14px;
|
|
136
|
+
padding-inline: 8px;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.str-chat__thread-list-empty-placeholder {
|
|
141
|
+
--str-chat-icon-height: 95px;
|
|
142
|
+
--str-chat-icon-width: 95px;
|
|
143
|
+
|
|
144
|
+
font-size: 20px;
|
|
145
|
+
font-weight: 500;
|
|
146
|
+
display: flex;
|
|
147
|
+
flex-direction: column;
|
|
148
|
+
align-items: center;
|
|
149
|
+
justify-content: center;
|
|
150
|
+
height: 100%;
|
|
151
|
+
gap: 16px;
|
|
152
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* Only available in React SDK. */
|
|
2
|
+
.str-chat {
|
|
3
|
+
--str-chat-thread-list-border-color: var(--str-chat__surface-color);
|
|
4
|
+
--str-chat-thread-list-container-background-color: var(--str-chat__secondary-background-color);
|
|
5
|
+
|
|
6
|
+
--str-chat-unseen-threads-banner-background-color: var(--str-chat__text-color);
|
|
7
|
+
--str-chat-unseen-threads-banner-color: var(--str-chat__opaque-surface-text-color);
|
|
8
|
+
|
|
9
|
+
--str-chat-thread-list-item-background-color-default: var(--str-chat__secondary-background-color);
|
|
10
|
+
--str-chat-thread-list-item-background-color-selected: var(--str-chat__surface-color);
|
|
11
|
+
|
|
12
|
+
--str-chat-thread-list-item-text-color: var(--str-chat__text-color);
|
|
13
|
+
--str-chat-thread-list-item-text-low-emphasis-color: var(--str-chat__text-low-emphasis-color);
|
|
14
|
+
|
|
15
|
+
--str-chat-thread-list-empty-placeholder-background-color: var(
|
|
16
|
+
--str-chat__secondary-background-color
|
|
17
|
+
);
|
|
18
|
+
--str-chat-thread-list-empty-placeholder-color: var(--str-chat__text-low-emphasis-color);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.str-chat__thread-list-container {
|
|
22
|
+
background-color: var(--str-chat-thread-list-container-background-color);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.str-chat__unseen-threads-banner {
|
|
26
|
+
border-radius: 16px;
|
|
27
|
+
background: var(--str-chat-unseen-threads-banner-background-color);
|
|
28
|
+
color: var(--str-chat-unseen-threads-banner-color);
|
|
29
|
+
|
|
30
|
+
&__button {
|
|
31
|
+
--str-chat-icon-color: var(--str-chat-unseen-threads-banner-color);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.str-chat__thread-list {
|
|
36
|
+
|
|
37
|
+
border-right: 1px solid var(--str-chat-thread-list-border-color);
|
|
38
|
+
|
|
39
|
+
.str-chat__thread-list-item {
|
|
40
|
+
--str-chat-icon-color: var(--str-chat-thread-list-item-text-color);
|
|
41
|
+
|
|
42
|
+
border: none;
|
|
43
|
+
background-color: var(--str-chat-thread-list-item-background-color-default);
|
|
44
|
+
color: var(--str-chat-thread-list-item-text-color);
|
|
45
|
+
|
|
46
|
+
&[aria-selected='true'] {
|
|
47
|
+
background-color: var(--str-chat-thread-list-item-background-color-selected);
|
|
48
|
+
|
|
49
|
+
.str-chat__thread-list-item__parent-message-text,
|
|
50
|
+
.str-chat__thread-list-item__latest-reply-text-and-timestamp {
|
|
51
|
+
color: inherit;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.str-chat__thread-list-item__parent-message-text {
|
|
56
|
+
color: var(--str-chat-thread-list-item-text-low-emphasis-color);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.str-chat__thread-list-item__latest-reply {
|
|
60
|
+
--str-chat__avatar-background-color: var(--str-chat__secondary-surface-color);
|
|
61
|
+
--str-chat__avatar-color: var(--str-chat__text-low-emphasis-color);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.str-chat__thread-list-item__latest-reply-text-and-timestamp {
|
|
65
|
+
color: var(--str-chat-thread-list-item-text-low-emphasis-color);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.str-chat__thread-list-empty-placeholder {
|
|
71
|
+
--str-chat-icon-color: var(--str-chat-thread-list-empty-placeholder-color);
|
|
72
|
+
|
|
73
|
+
background-color: var(--str-chat-thread-list-empty-placeholder-background-color);
|
|
74
|
+
color: var(--str-chat-thread-list-empty-placeholder-color);
|
|
75
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
.str-chat {
|
|
2
|
+
--str-chat-unread-count-badge-absolute-offset-vertical: 50%;
|
|
3
|
+
--str-chat-unread-count-badge-absolute-offset-horizontal: 50%;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.str-chat__unread-count-badge-container {
|
|
7
|
+
position: relative;
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.str-chat__unread-count-badge {
|
|
14
|
+
font-size: 12px;
|
|
15
|
+
min-width: 22px;
|
|
16
|
+
min-height: 22px;
|
|
17
|
+
line-height: 8px;
|
|
18
|
+
font-weight: 700;
|
|
19
|
+
padding: 7px;
|
|
20
|
+
flex-shrink: 0;
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
font-variant-numeric: tabular-nums;
|
|
25
|
+
|
|
26
|
+
&--top-right {
|
|
27
|
+
position: absolute;
|
|
28
|
+
translate: var(--str-chat-unread-count-badge-absolute-offset-horizontal)
|
|
29
|
+
calc(var(--str-chat-unread-count-badge-absolute-offset-vertical) * -1);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&--bottom-left {
|
|
33
|
+
position: absolute;
|
|
34
|
+
translate: calc(var(--str-chat-unread-count-badge-absolute-offset-horizontal) * -1)
|
|
35
|
+
var(--str-chat-unread-count-badge-absolute-offset-vertical);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&--bottom-right {
|
|
39
|
+
position: absolute;
|
|
40
|
+
translate: var(--str-chat-unread-count-badge-absolute-offset-horizontal)
|
|
41
|
+
var(--str-chat-unread-count-badge-absolute-offset-vertical);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&--top-left {
|
|
45
|
+
position: absolute;
|
|
46
|
+
translate: calc(var(--str-chat-unread-count-badge-absolute-offset-horizontal) * -1)
|
|
47
|
+
calc(var(--str-chat-unread-count-badge-absolute-offset-vertical) * -1);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* Only available in React SDK. */
|
|
2
|
+
.str-chat {
|
|
3
|
+
--str-chat-unread-count-badge-color: var(--str-chat__on-unread-badge-color);
|
|
4
|
+
--str-chat-unread-count-badge-background-color: var(--str-chat__danger-color);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.str-chat__unread-count-badge {
|
|
8
|
+
background-color: var(--str-chat-unread-count-badge-background-color);
|
|
9
|
+
color: var(--str-chat-unread-count-badge-color);
|
|
10
|
+
border-radius: 9999px;
|
|
11
|
+
}
|
|
@@ -21,7 +21,8 @@ $emoji-flag-unicode-range: U+1F1E6-1F1FF;
|
|
|
21
21
|
|
|
22
22
|
.str-chat--windows-flags {
|
|
23
23
|
// TODO: consider adding the rule for reactions (list & selector) if we ever decide to make them use native emojis
|
|
24
|
-
.str-chat__textarea__textarea,
|
|
24
|
+
.str-chat__textarea__textarea, // class name from theme v1
|
|
25
|
+
.str-chat__message-textarea,
|
|
25
26
|
.str-chat__message-text-inner *,
|
|
26
27
|
.str-chat__emoji-item--entity,
|
|
27
28
|
.emoji-mart-emoji-native * {
|
|
@@ -32,7 +33,8 @@ $emoji-flag-unicode-range: U+1F1E6-1F1FF;
|
|
|
32
33
|
|
|
33
34
|
@-moz-document url-prefix('') {
|
|
34
35
|
.str-chat--windows-flags {
|
|
35
|
-
.str-chat__textarea__textarea,
|
|
36
|
+
.str-chat__textarea__textarea, // class name from theme v1
|
|
37
|
+
.str-chat__message-textarea,
|
|
36
38
|
.str-chat__message-text-inner *,
|
|
37
39
|
.str-chat__emoji-item--entity,
|
|
38
40
|
.emoji-mart-emoji-native * {
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
@use 'ChannelSearch/ChannelSearch-layout';
|
|
16
16
|
@use 'common/CTAButton/CTAButton-layout';
|
|
17
17
|
@use 'common/CircleFAButton/CircleFAButton-layout';
|
|
18
|
+
@use 'Dialog/Dialog-layout';
|
|
18
19
|
@use 'EditMessageForm/EditMessageForm-layout';
|
|
19
20
|
@use 'ImageCarousel/ImageCarousel-layout';
|
|
20
21
|
@use 'Icon/Icon-layout';
|
|
@@ -35,3 +36,6 @@
|
|
|
35
36
|
@use 'Thread/Thread-layout';
|
|
36
37
|
@use 'Tooltip/Tooltip-layout';
|
|
37
38
|
@use 'TypingIndicator/TypingIndicator-layout';
|
|
39
|
+
@use 'ThreadList/ThreadList-layout';
|
|
40
|
+
@use 'ChatView/ChatView-layout';
|
|
41
|
+
@use 'UnreadCountBadge/UnreadCountBadge-layout';
|
package/src/assets/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '5.3.
|
|
1
|
+
export const version = '5.3.1';
|
|
Binary file
|