stream-chat-angular 4.6.0 → 4.8.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/assets/version.d.ts +1 -1
- package/bundles/stream-chat-angular.umd.js +27 -24
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/attachment-configuration.service.js +26 -23
- package/esm2015/lib/attachment-list/attachment-list.component.js +2 -2
- package/esm2015/lib/types.js +1 -1
- package/fesm2015/stream-chat-angular.js +27 -24
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/attachment-configuration.service.d.ts +3 -3
- package/lib/attachment-list/attachment-list.component.d.ts +3 -3
- package/lib/types.d.ts +5 -1
- package/package.json +1 -1
- package/src/assets/styles/css/index.css +1 -1
- package/src/assets/styles/css/index.css.map +1 -1
- package/src/assets/styles/scss/Attachment.scss +45 -20
- package/src/assets/styles/scss/Audio.scss +1 -0
- package/src/assets/styles/scss/ChannelList.scss +14 -0
- package/src/assets/styles/scss/ChannelSearch.scss +8 -8
- package/src/assets/styles/scss/Message.scss +26 -41
- package/src/assets/styles/scss/MessageCommerce.scss +1 -1
- package/src/assets/styles/scss/Thread.scss +39 -2
- package/src/assets/styles/scss/VirtualMessage.scss +2 -6
- package/src/assets/styles/v2/css/index.css +1 -1
- package/src/assets/styles/v2/css/index.css.map +1 -1
- package/src/assets/styles/v2/css/index.layout.css +1 -1
- package/src/assets/styles/v2/css/index.layout.css.map +1 -1
- package/src/assets/styles/v2/scss/AttachmentList/AttachmentList-layout.scss +18 -13
- package/src/assets/styles/v2/scss/ChannelList/ChannelList-layout.scss +14 -0
- package/src/assets/styles/v2/scss/ChannelSearch/ChannelSearch-layout.scss +68 -51
- package/src/assets/styles/v2/scss/ChannelSearch/ChannelSearch-theme.scss +48 -0
- package/src/assets/styles/v2/scss/MessageList/MessageList-layout.scss +1 -4
- package/src/assets/styles/v2/scss/MessageList/VirtualizedMessageList-layout.scss +21 -0
- package/src/assets/styles/v2/scss/MessageList/VirtualizedMessageList-theme.scss +9 -0
- package/src/assets/styles/v2/scss/Notification/NotificationList-theme.scss +2 -2
- package/src/assets/styles/v2/scss/Tooltip/Tooltip-layout.scss +1 -1
- package/src/assets/styles/v2/scss/_utils.scss +8 -0
- package/src/assets/version.ts +1 -1
|
@@ -39,3 +39,17 @@
|
|
|
39
39
|
display: none;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
.str-chat__channel-list-react {
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
|
|
47
|
+
.str-chat__channel-list-messenger-react {
|
|
48
|
+
overflow: hidden;
|
|
49
|
+
padding-bottom: var(--str-chat__spacing-2_5);
|
|
50
|
+
|
|
51
|
+
.str-chat__channel-list-messenger-react__main {
|
|
52
|
+
overflow-y: auto;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -1,71 +1,88 @@
|
|
|
1
1
|
@use '../utils';
|
|
2
2
|
|
|
3
|
-
.str-chat__channel-search
|
|
4
|
-
|
|
5
|
-
padding: var(--str-chat__spacing-2_5);
|
|
3
|
+
.str-chat__channel-search {
|
|
4
|
+
position: relative;
|
|
6
5
|
|
|
7
|
-
.str-chat__channel-search-bar
|
|
8
|
-
@include utils.
|
|
9
|
-
width: calc(var(--str-chat__spacing-px) * 40);
|
|
10
|
-
height: calc(var(--str-chat__spacing-px) * 40);
|
|
6
|
+
.str-chat__channel-search-bar {
|
|
7
|
+
@include utils.flex-row-center;
|
|
11
8
|
padding: var(--str-chat__spacing-2_5);
|
|
12
|
-
cursor: pointer;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.str-chat__channel-search-input--wrapper {
|
|
16
|
-
display: flex;
|
|
17
|
-
align-items: center;
|
|
18
|
-
flex: 1;
|
|
19
|
-
padding: var(--str-chat__spacing-2_5);
|
|
20
|
-
min-width: 0;
|
|
21
9
|
|
|
22
|
-
.str-chat__channel-search-
|
|
23
|
-
.str-chat__channel-search-input--clear-button {
|
|
24
|
-
display: inline-flex;
|
|
25
|
-
padding: 0 var(--str-chat__spacing-2_5);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.str-chat__channel-search-input--clear-button {
|
|
10
|
+
.str-chat__channel-search-bar-button {
|
|
29
11
|
@include utils.button-reset;
|
|
12
|
+
width: calc(var(--str-chat__spacing-px) * 40);
|
|
13
|
+
height: calc(var(--str-chat__spacing-px) * 40);
|
|
14
|
+
padding: var(--str-chat__spacing-2_5);
|
|
30
15
|
cursor: pointer;
|
|
31
|
-
|
|
32
|
-
&:disabled {
|
|
33
|
-
cursor: default;
|
|
34
|
-
}
|
|
35
16
|
}
|
|
36
17
|
|
|
37
|
-
input {
|
|
18
|
+
.str-chat__channel-search-input--wrapper {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
38
21
|
flex: 1;
|
|
22
|
+
padding: var(--str-chat__spacing-2_5);
|
|
39
23
|
min-width: 0;
|
|
24
|
+
|
|
25
|
+
.str-chat__channel-search-input--icon,
|
|
26
|
+
.str-chat__channel-search-input--clear-button {
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
padding: 0 var(--str-chat__spacing-2_5);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.str-chat__channel-search-input--clear-button {
|
|
32
|
+
@include utils.button-reset;
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
|
|
35
|
+
&:disabled {
|
|
36
|
+
cursor: default;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
input {
|
|
41
|
+
flex: 1;
|
|
42
|
+
min-width: 0;
|
|
43
|
+
}
|
|
40
44
|
}
|
|
41
45
|
}
|
|
42
|
-
}
|
|
43
46
|
|
|
44
|
-
.str-chat__channel-search-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
47
|
+
.str-chat__channel-search-container-searching {
|
|
48
|
+
width: 100%;
|
|
49
|
+
padding: var(--str-chat__spacing-5) var(--str-chat__spacing-4);
|
|
50
|
+
}
|
|
48
51
|
|
|
49
|
-
.str-chat__channel-search-
|
|
50
|
-
.str-chat__channel-search-container-empty {
|
|
51
|
-
display: flex;
|
|
52
|
-
flex-direction: column;
|
|
53
|
-
align-items: center;
|
|
52
|
+
.str-chat__channel-search-results-header {
|
|
54
53
|
width: 100%;
|
|
54
|
+
padding: var(--str-chat__spacing-5) var(--str-chat__spacing-4);
|
|
55
|
+
}
|
|
55
56
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
|
|
58
|
+
.str-chat__channel-search-result-list {
|
|
59
|
+
&.popup {
|
|
60
|
+
position: absolute;
|
|
61
|
+
left: 0;
|
|
62
|
+
right: 0;
|
|
60
63
|
}
|
|
61
|
-
}
|
|
62
64
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
.str-chat__channel-search-container-empty {
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
align-items: center;
|
|
69
|
+
width: 100%;
|
|
70
|
+
padding: var(--str-chat__spacing-5) var(--str-chat__spacing-4);
|
|
71
|
+
|
|
72
|
+
svg {
|
|
73
|
+
height: calc(var(--str-chat__spacing-px) * 90 + var(--str-chat__spacing-20));
|
|
74
|
+
width: calc(var(--str-chat__spacing-px) * 90);
|
|
75
|
+
padding: var(--str-chat__spacing-10) 0;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.str-chat__channel-search-result {
|
|
80
|
+
@include utils.button-reset;
|
|
81
|
+
display: flex;
|
|
82
|
+
align-items: center;
|
|
83
|
+
width: 100%;
|
|
84
|
+
column-gap: var(--str-chat__spacing-2);
|
|
85
|
+
padding: var(--str-chat__spacing-3) var(--str-chat__spacing-2);
|
|
86
|
+
}
|
|
70
87
|
}
|
|
71
|
-
}
|
|
88
|
+
}
|
|
@@ -89,6 +89,25 @@
|
|
|
89
89
|
--str-chat__secondary-surface-color
|
|
90
90
|
);
|
|
91
91
|
|
|
92
|
+
--str-chat__channel-search-result-list-color: var(--str-chat__text-color);
|
|
93
|
+
|
|
94
|
+
--str-chat__channel-search-result-list-background-color: var(--str-chat__secondary-background-color);
|
|
95
|
+
|
|
96
|
+
/* Top border of the component */
|
|
97
|
+
--str-chat__channel-search-result-list-border-block-start: none;
|
|
98
|
+
|
|
99
|
+
/* Bottom border of the component */
|
|
100
|
+
--str-chat__channel-search-result-list-border-block-end: none;
|
|
101
|
+
|
|
102
|
+
/* Left (right in RTL layout) border of the component */
|
|
103
|
+
--str-chat__channel-search-result-list-border-inline-start: none;
|
|
104
|
+
|
|
105
|
+
/* Right (left in RTL layout) border of the component */
|
|
106
|
+
--str-chat__channel-search-result-list-border-inline-end: none;
|
|
107
|
+
|
|
108
|
+
/* Box shadow applied to the component */
|
|
109
|
+
--str-chat__channel-search-result-list-popup-box-shadow: 0 4px 4px var(--str-chat__box-shadow-color);
|
|
110
|
+
|
|
92
111
|
/* The font color used in the search results header */
|
|
93
112
|
--str-chat__channel-search-results-header-color: var(--str-chat__text-low-emphasis-color);
|
|
94
113
|
|
|
@@ -108,6 +127,25 @@
|
|
|
108
127
|
/* Right (left in RTL layout) border of the component */
|
|
109
128
|
--str-chat__channel-search-results-header-border-inline-end: none;
|
|
110
129
|
|
|
130
|
+
/* The font color used in the search results loading indicator */
|
|
131
|
+
--str-chat__channel-search-results-loading-indicator-color: var(--str-chat__text-low-emphasis-color);
|
|
132
|
+
|
|
133
|
+
/* The background color used in the search results loading indicator */
|
|
134
|
+
--str-chat__channel-search-results-loading-indicator-background-color: var(--str-chat__background-color);
|
|
135
|
+
|
|
136
|
+
/* Top border of the component */
|
|
137
|
+
--str-chat__channel-search-results-loading-indicator-border-block-start: none;
|
|
138
|
+
|
|
139
|
+
/* Bottom border of the component */
|
|
140
|
+
--str-chat__channel-search-results-loading-indicator-border-block-end: var(--str-chat__surface-color) 1px
|
|
141
|
+
solid;
|
|
142
|
+
|
|
143
|
+
/* Left (right in RTL layout) border of the component */
|
|
144
|
+
--str-chat__channel-search-results-loading-indicator-border-inline-start: none;
|
|
145
|
+
|
|
146
|
+
/* Right (left in RTL layout) border of the component */
|
|
147
|
+
--str-chat__channel-search-results-loading-indicator-border-inline-end: none;
|
|
148
|
+
|
|
111
149
|
/* The font color used in the empty search results indicator */
|
|
112
150
|
--str-chat__channel-search-results-empty-color: var(--str-chat__text-low-emphasis-color);
|
|
113
151
|
|
|
@@ -162,6 +200,16 @@
|
|
|
162
200
|
}
|
|
163
201
|
|
|
164
202
|
.str-chat__channel-search-result-list {
|
|
203
|
+
@include utils.component-layer-overrides('channel-search-result-list');
|
|
204
|
+
|
|
205
|
+
&.popup {
|
|
206
|
+
box-shadow: var(--str-chat__channel-search-result-list-popup-box-shadow);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.str-chat__channel-search-container-searching {
|
|
210
|
+
@include utils.component-layer-overrides('channel-search-results-loading-indicator');
|
|
211
|
+
}
|
|
212
|
+
|
|
165
213
|
.str-chat__channel-search-container-empty {
|
|
166
214
|
@include utils.component-layer-overrides('channel-search-results-empty');
|
|
167
215
|
font: var(--str-chat__subtitle2-medium-text);
|
|
@@ -32,12 +32,9 @@
|
|
|
32
32
|
|
|
33
33
|
.str-chat__thread-start {
|
|
34
34
|
text-align: start;
|
|
35
|
+
padding-top: var(--str-chat__spacing-3);
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
|
-
|
|
38
|
-
.str-chat__parent-message-li .str-chat__thread-start {
|
|
39
|
-
padding-top: var(--str-chat__spacing-3);
|
|
40
|
-
}
|
|
41
38
|
}
|
|
42
39
|
|
|
43
40
|
.str-chat__jump-to-latest-message {
|
|
@@ -14,6 +14,15 @@
|
|
|
14
14
|
@include utils.message-list-spacing;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
.str-chat__parent-message-li {
|
|
18
|
+
padding-block-end: var(--str-chat__spacing-4);
|
|
19
|
+
|
|
20
|
+
.str-chat__thread-start {
|
|
21
|
+
text-align: start;
|
|
22
|
+
padding-top: var(--str-chat__spacing-3);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
17
26
|
// conditionally showing the header displaces items when prepending.
|
|
18
27
|
// a simple workaround is to make the loading indicator an overlay.
|
|
19
28
|
&__loading {
|
|
@@ -42,3 +51,15 @@
|
|
|
42
51
|
padding-block-end: var(--str-chat__spacing-0_5);
|
|
43
52
|
}
|
|
44
53
|
}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
.str-chat__thread--virtualized {
|
|
57
|
+
.str-chat__main-panel-inner {
|
|
58
|
+
height: 100%;
|
|
59
|
+
|
|
60
|
+
// the first message in virtualized thread has to be separated from the top by padding, not margin
|
|
61
|
+
.str-chat__virtual-list-message-wrapper:first-of-type {
|
|
62
|
+
padding-block-start: var(--str-chat__spacing-4);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -29,4 +29,13 @@
|
|
|
29
29
|
|
|
30
30
|
.str-chat__virtual-list {
|
|
31
31
|
@include utils.component-layer-overrides('virtual-list');
|
|
32
|
+
|
|
33
|
+
.str-chat__parent-message-li {
|
|
34
|
+
border-block-end: 1px solid var(--str-chat__thread-head-start-border-block-end-color);
|
|
35
|
+
|
|
36
|
+
.str-chat__thread-start {
|
|
37
|
+
color: var(--str-chat__thread-head-start-color);
|
|
38
|
+
font: var(--str-chat__subtitle-text);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
32
41
|
}
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
--str-chat__notification-list-box-shadow: none;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
.str-chat__list-
|
|
30
|
-
@include utils.component-layer-overrides('notification-list
|
|
29
|
+
.str-chat__list-notifications {
|
|
30
|
+
@include utils.component-layer-overrides('notification-list');
|
|
31
31
|
}
|
|
@@ -186,3 +186,11 @@
|
|
|
186
186
|
@mixin channel-preview-display-name-theme {
|
|
187
187
|
font: var(--str-chat__subtitle-medium-text);
|
|
188
188
|
}
|
|
189
|
+
|
|
190
|
+
@mixin clamped-height-from-original-image-dimensions($max-height-css-var, $max-width-css-var) {
|
|
191
|
+
height: min(
|
|
192
|
+
var(#{$max-height-css-var}),
|
|
193
|
+
min(var(#{$max-width-css-var}, 1000000) / var(--original-width, 1000000), 1px) *
|
|
194
|
+
var(--original-height, 1000000)
|
|
195
|
+
);
|
|
196
|
+
}
|
package/src/assets/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '4.
|
|
1
|
+
export const version = '4.8.0';
|