stream-chat-angular 4.53.0 → 4.54.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/i18n/en.d.ts +1 -0
- package/assets/version.d.ts +1 -1
- package/bundles/stream-chat-angular.umd.js +187 -54
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/i18n/en.js +2 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/channel.service.js +38 -1
- package/esm2015/lib/message-list/message-list.component.js +2 -2
- package/esm2015/lib/message-reactions/message-reactions.component.js +78 -8
- package/fesm2015/stream-chat-angular.js +134 -30
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/channel.service.d.ts +13 -3
- package/lib/message-reactions/message-reactions.component.d.ts +15 -3
- package/package.json +1 -1
- package/src/assets/i18n/en.ts +1 -0
- package/src/assets/styles/v2/css/index.css +1 -1
- package/src/assets/styles/v2/css/index.layout.css +1 -1
- package/src/assets/styles/v2/scss/AttachmentList/AttachmentList-layout.scss +1 -0
- package/src/assets/styles/v2/scss/AttachmentList/AttachmentList-theme.scss +3 -3
- package/src/assets/styles/v2/scss/AttachmentPreviewList/AttachmentPreviewList-layout.scss +4 -0
- package/src/assets/styles/v2/scss/BaseImage/BaseImage-layout.scss +21 -0
- package/src/assets/styles/v2/scss/BaseImage/BaseImage-theme.scss +35 -0
- package/src/assets/styles/v2/scss/BaseImage/index.scss +2 -0
- package/src/assets/styles/v2/scss/Message/Message-layout.scss +59 -9
- package/src/assets/styles/v2/scss/Message/Message-theme.scss +32 -1
- package/src/assets/styles/v2/scss/MessageReactions/MessageReactions-layout.scss +68 -0
- package/src/assets/styles/v2/scss/MessageReactions/MessageReactions-theme.scss +17 -0
- package/src/assets/styles/v2/scss/_global-theme-variables.scss +3 -0
- package/src/assets/styles/v2/scss/_icons.scss +3 -0
- package/src/assets/styles/v2/scss/_utils.scss +12 -0
- package/src/assets/styles/v2/scss/index.layout.scss +2 -0
- package/src/assets/styles/v2/scss/index.scss +1 -0
- package/src/assets/styles/v2/scss/vendor/react-image-gallery.scss +19 -0
- package/src/assets/version.ts +1 -1
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
align-items: center;
|
|
20
20
|
padding: var(--str-chat__spacing-1_5);
|
|
21
21
|
position: relative;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
flex-shrink: 0;
|
|
22
24
|
|
|
23
25
|
button {
|
|
24
26
|
@include utils.button-reset;
|
|
@@ -53,3 +55,69 @@
|
|
|
53
55
|
justify-content: flex-start;
|
|
54
56
|
}
|
|
55
57
|
}
|
|
58
|
+
|
|
59
|
+
.str-chat__message-reactions-details-modal {
|
|
60
|
+
.str-chat__modal--open {
|
|
61
|
+
.str-chat__modal__inner {
|
|
62
|
+
height: 40%;
|
|
63
|
+
max-height: 80%;
|
|
64
|
+
min-width: 90%;
|
|
65
|
+
max-width: 90%;
|
|
66
|
+
width: 90%;
|
|
67
|
+
flex-basis: min-content;
|
|
68
|
+
|
|
69
|
+
@media only screen and (min-device-width: 768px) {
|
|
70
|
+
min-width: 40%;
|
|
71
|
+
max-width: 60%;
|
|
72
|
+
width: min-content;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.str-chat__message-reactions-details {
|
|
79
|
+
width: 100%;
|
|
80
|
+
display: flex;
|
|
81
|
+
flex-direction: column;
|
|
82
|
+
gap: var(--str-chat__spacing-4);
|
|
83
|
+
max-height: 100%;
|
|
84
|
+
height: 100%;
|
|
85
|
+
min-height: 0;
|
|
86
|
+
|
|
87
|
+
.str-chat__message-reactions-details-reaction-types {
|
|
88
|
+
display: flex;
|
|
89
|
+
max-width: 100%;
|
|
90
|
+
width: 100%;
|
|
91
|
+
min-width: 0;
|
|
92
|
+
overflow-x: auto;
|
|
93
|
+
gap: var(--str-chat__spacing-4);
|
|
94
|
+
display: flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
flex-shrink: 0;
|
|
97
|
+
|
|
98
|
+
.str-chat__message-reactions-details-reaction-type {
|
|
99
|
+
flex-shrink: 0;
|
|
100
|
+
cursor: pointer;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.str-chat__message-reaction-emoji-big {
|
|
105
|
+
align-self: center;
|
|
106
|
+
font-size: 2rem;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.str-chat__message-reactions-details-reacting-users {
|
|
110
|
+
display: flex;
|
|
111
|
+
flex-direction: column;
|
|
112
|
+
gap: var(--str-chat__spacing-3);
|
|
113
|
+
max-height: 100%;
|
|
114
|
+
overflow-y: auto;
|
|
115
|
+
min-height: 0;
|
|
116
|
+
|
|
117
|
+
.str-chat__message-reactions-details-reacting-user {
|
|
118
|
+
display: flex;
|
|
119
|
+
align-items: center;
|
|
120
|
+
gap: var(--str-chat__spacing-2);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
@@ -56,6 +56,8 @@
|
|
|
56
56
|
--str-chat__own-message-reaction-background-color: var(
|
|
57
57
|
--str-chat__primary-surface-color-low-emphasis
|
|
58
58
|
);
|
|
59
|
+
|
|
60
|
+
--str-chat__messsage-reactions-details--selected-color: solid var(--str-chat__primary-color);
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
.str-chat__message-reactions-container {
|
|
@@ -73,3 +75,18 @@
|
|
|
73
75
|
}
|
|
74
76
|
}
|
|
75
77
|
}
|
|
78
|
+
|
|
79
|
+
.str-chat__message-reactions-details {
|
|
80
|
+
.str-chat__message-reactions-details-reaction-type {
|
|
81
|
+
border-block-end: solid transparent;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.str-chat__message-reactions-details-reaction-type--selected {
|
|
85
|
+
border-block-end: var(--str-chat__messsage-reactions-details--selected-color);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
.str-chat__message-reactions-details-reacting-user {
|
|
90
|
+
font: var(--str-chat__subtitle-text);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -24,6 +24,9 @@
|
|
|
24
24
|
/* The font used for caption texts with emphasize */
|
|
25
25
|
--str-chat__caption-medium-text: 500 0.75rem/1rem var(--str-chat__font-family);
|
|
26
26
|
|
|
27
|
+
/* The font used for caption texts with emphasize */
|
|
28
|
+
--str-chat__caption-strong-text: 700 0.75rem/1rem var(--str-chat__font-family);
|
|
29
|
+
|
|
27
30
|
/* The font used for body texts */
|
|
28
31
|
--str-chat__body-text: 0.875rem/1rem var(--str-chat__font-family);
|
|
29
32
|
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
.str-chat {
|
|
2
|
+
--str-chat__image-fallback-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9ImN1cnJlbnRDb2xvciIgY2xhc3M9InN0ci1jaGF0X19pbWFnZS1mYWxsYmFja19faWNvbiIgdmlld0JveD0iMCAwIDE4IDE4Ij48cGF0aCBkPSJNMTYgMnYxNEgyVjJoMTRabTAtMkgyQy45IDAgMCAuOSAwIDJ2MTRjMCAxLjEuOSAyIDIgMmgxNGMxLjEgMCAyLS45IDItMlYyYzAtMS4xLS45LTItMi0yWm0tNC44NiA4Ljg2LTMgMy44N0w2IDEwLjE0IDMgMTRoMTJsLTMuODYtNS4xNFoiLz48L3N2Zz4=");
|
|
3
|
+
}
|
|
@@ -199,3 +199,15 @@
|
|
|
199
199
|
var(--original-height, 1000000)
|
|
200
200
|
);
|
|
201
201
|
}
|
|
202
|
+
|
|
203
|
+
@mixin apply-mask-image($imageDataUrl, $fill, $size) {
|
|
204
|
+
mask-image: $imageDataUrl;
|
|
205
|
+
-webkit-mask-image: $imageDataUrl;
|
|
206
|
+
mask-repeat: no-repeat;
|
|
207
|
+
-webkit-mask-repeat: no-repeat;
|
|
208
|
+
mask-position: center;
|
|
209
|
+
-webkit-mask-position: center;
|
|
210
|
+
mask-size: $size;
|
|
211
|
+
-webkit-mask-size: $size;
|
|
212
|
+
background-color: $fill;
|
|
213
|
+
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
@use 'base';
|
|
2
2
|
@use 'global-layout-variables';
|
|
3
|
+
@use 'icons';
|
|
3
4
|
|
|
4
5
|
@use 'Avatar/Avatar-layout';
|
|
5
6
|
@use 'AttachmentList/AttachmentList-layout';
|
|
6
7
|
@use 'AttachmentPreviewList/AttachmentPreviewList-layout';
|
|
7
8
|
@use 'Autocomplete/Autocomplete-layout';
|
|
9
|
+
@use 'BaseImage/BaseImage-layout';
|
|
8
10
|
@use 'Channel/Channel-layout';
|
|
9
11
|
@use 'ChannelHeader/ChannelHeader-layout';
|
|
10
12
|
@use 'ChannelList/ChannelList-layout';
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
@use 'AttachmentList/AttachmentList-theme';
|
|
11
11
|
@use 'AttachmentPreviewList/AttachmentPreviewList-theme';
|
|
12
12
|
@use 'Autocomplete/Autocomplete-theme';
|
|
13
|
+
@use 'BaseImage/BaseImage-theme';
|
|
13
14
|
@use 'Channel/Channel-theme.scss';
|
|
14
15
|
@use 'ChannelHeader/ChannelHeader-theme';
|
|
15
16
|
@use 'ChannelList/ChannelList-theme';
|
|
@@ -127,6 +127,9 @@ $ig-shadow: 0 2px 2px lighten($ig-black, 10%);
|
|
|
127
127
|
@include vendor-prefix('user-select', none);
|
|
128
128
|
-webkit-tap-highlight-color: $ig-transparent;
|
|
129
129
|
position: relative;
|
|
130
|
+
display: flex;
|
|
131
|
+
justify-content: center;
|
|
132
|
+
align-items: center;
|
|
130
133
|
|
|
131
134
|
&.fullscreen-modal {
|
|
132
135
|
background: $ig-black;
|
|
@@ -151,6 +154,22 @@ $ig-shadow: 0 2px 2px lighten($ig-black, 10%);
|
|
|
151
154
|
line-height: 0;
|
|
152
155
|
top: 0;
|
|
153
156
|
|
|
157
|
+
.image-gallery-slide {
|
|
158
|
+
background-color: var(--str-chat__secondary-surface-color);
|
|
159
|
+
|
|
160
|
+
.str-chat__base-image--load-failed {
|
|
161
|
+
height: var(--str-chat__attachment-max-width);
|
|
162
|
+
width: var(--str-chat__attachment-max-width);
|
|
163
|
+
font-size: 0;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.str-chat__message-attachment-file--item-download {
|
|
167
|
+
position: absolute;
|
|
168
|
+
left: 0.375rem;
|
|
169
|
+
top: 0.375rem;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
154
173
|
&.fullscreen {
|
|
155
174
|
background: $ig-black;
|
|
156
175
|
|
package/src/assets/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '4.
|
|
1
|
+
export const version = '4.54.0';
|