stream-chat-react 12.0.0-rc.1 → 12.0.0-rc.2
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/dist/css/v2/emoji-replacement.css +1 -1
- package/dist/css/v2/index.css +2 -2
- package/dist/css/v2/index.layout.css +2 -2
- package/dist/scss/v2/Autocomplete/Autocomplete-layout.scss +1 -1
- package/dist/scss/v2/Autocomplete/Autocomplete-theme.scss +4 -2
- package/dist/scss/v2/Avatar/Avatar-layout.scss +31 -23
- package/dist/scss/v2/ChannelList/ChannelList-layout.scss +0 -5
- package/dist/scss/v2/ChannelSearch/ChannelSearch-layout.scss +1 -0
- package/dist/scss/v2/EditMessageForm/EditMessageForm-theme.scss +9 -9
- package/dist/scss/v2/Message/Message-layout.scss +37 -6
- package/dist/scss/v2/MessageReactions/MessageReactionsSelector-layout.scss +11 -0
- package/dist/scss/v2/MessageReactions/MessageReactionsSelector-theme.scss +5 -0
- package/dist/scss/v2/_emoji-replacement.scss +4 -2
- package/package.json +2 -2
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
@use '../utils';
|
|
2
2
|
|
|
3
3
|
.str-chat {
|
|
4
|
-
/* The border radius used for the borders of the component */
|
|
4
|
+
/* The border radius used for the borders of the component. Note for Angular SDK users: this variable isn't available starting from version 5 */
|
|
5
5
|
--str-chat__edit-message-modal-button-border-radius: none;
|
|
6
6
|
|
|
7
|
-
/* The text color used for the send button */
|
|
7
|
+
/* The text color used for the send button. Note for Angular SDK users: this variable isn't available starting from version 5 */
|
|
8
8
|
--str-chat__edit-message-modal-send-button-color: var(--str-chat__primary-color);
|
|
9
9
|
|
|
10
|
-
/* The text color used for the cancel button */
|
|
10
|
+
/* The text color used for the cancel button. Note for Angular SDK users: this variable isn't available starting from version 5 */
|
|
11
11
|
--str-chat__edit-message-modal-cancel-button-color: var(--str-chat__text-low-emphasis-color);
|
|
12
12
|
|
|
13
|
-
/* The background color of the component */
|
|
13
|
+
/* The background color of the component. Note for Angular SDK users: this variable isn't available starting from version 5 */
|
|
14
14
|
--str-chat__edit-message-modal-button-background-color: transparent;
|
|
15
15
|
|
|
16
|
-
/* Top border of the component */
|
|
16
|
+
/* Top border of the component. Note for Angular SDK users: this variable isn't available starting from version 5 */
|
|
17
17
|
--str-chat__edit-message-modal-button-border-block-start: none;
|
|
18
18
|
|
|
19
|
-
/* Bottom border of the component */
|
|
19
|
+
/* Bottom border of the component. Note for Angular SDK users: this variable isn't available starting from version 5 */
|
|
20
20
|
--str-chat__edit-message-modal-button-border-block-end: none;
|
|
21
21
|
|
|
22
|
-
/* Left (right in RTL layout) border of the component */
|
|
22
|
+
/* Left (right in RTL layout) border of the component. Note for Angular SDK users: this variable isn't available starting from version 5 */
|
|
23
23
|
--str-chat__edit-message-modal-button-border-inline-start: none;
|
|
24
24
|
|
|
25
|
-
/* Right (left in RTL layout) border of the component */
|
|
25
|
+
/* Right (left in RTL layout) border of the component. Note for Angular SDK users: this variable isn't available starting from version 5 */
|
|
26
26
|
--str-chat__edit-message-modal-button-border-inline-end: none;
|
|
27
27
|
|
|
28
|
-
/* Box shadow applied to the component */
|
|
28
|
+
/* Box shadow applied to the component. Note for Angular SDK users: this variable isn't available starting from version 5 */
|
|
29
29
|
--str-chat__edit-message-modal-button-box-shadow: none;
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use '../utils';
|
|
2
2
|
|
|
3
3
|
.str-chat {
|
|
4
|
-
/* The width/height of the message options
|
|
4
|
+
/* The width/height of the message options button(s), for Angular SDK it's only used on desktop devices starting from version 5 */
|
|
5
5
|
--str-chat__message-options-button-size: calc(var(--str-chat__spacing-px) * 26);
|
|
6
6
|
|
|
7
7
|
/* The maximum allowed width of the message component */
|
|
@@ -26,6 +26,12 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.str-chat__message {
|
|
29
|
+
--str-chat-message-options-size: calc(3 * var(--str-chat__message-options-button-size));
|
|
30
|
+
|
|
31
|
+
&.str-chat__message-without-touch-support {
|
|
32
|
+
--str-chat-message-options-size: calc(1 * var(--str-chat__message-options-button-size));
|
|
33
|
+
}
|
|
34
|
+
|
|
29
35
|
.str-chat__message-bubble {
|
|
30
36
|
max-width: var(--str-chat__message-max-width);
|
|
31
37
|
}
|
|
@@ -127,7 +133,7 @@
|
|
|
127
133
|
align-items: flex-start;
|
|
128
134
|
justify-content: flex-end;
|
|
129
135
|
flex-direction: row-reverse;
|
|
130
|
-
width:
|
|
136
|
+
width: var(--str-chat-message-options-size);
|
|
131
137
|
|
|
132
138
|
.str-chat__message-actions-box-button,
|
|
133
139
|
.str-chat__message-reply-in-thread-button,
|
|
@@ -287,8 +293,8 @@
|
|
|
287
293
|
}
|
|
288
294
|
|
|
289
295
|
// Message options display - default mode: they appear when .str-chat__li is hovered
|
|
290
|
-
.str-chat__ul:not(.str-chat__message-options-in-bubble),
|
|
291
|
-
.str-chat__virtual-list:not(.str-chat__message-options-in-bubble) {
|
|
296
|
+
.str-chat__ul:not(.str-chat__message-options-in-bubble, .str-chat__message-with-touch-support),
|
|
297
|
+
.str-chat__virtual-list:not(.str-chat__message-options-in-bubble, .str-chat__message-with-touch-support) {
|
|
292
298
|
/* This rule won't be applied in browsers that don't support :has() */
|
|
293
299
|
.str-chat__li:hover:not(:has(.str-chat__reaction-list:hover, .str-chat__modal--open)),
|
|
294
300
|
.str-chat__li:focus-within:not(:has(.str-chat__reaction-list:focus-within, .str-chat__modal--open)) {
|
|
@@ -355,11 +361,11 @@
|
|
|
355
361
|
}
|
|
356
362
|
|
|
357
363
|
.str-chat__message--other .str-chat__message-inner {
|
|
358
|
-
margin-inline-end:
|
|
364
|
+
margin-inline-end: var(--str-chat-message-options-size);
|
|
359
365
|
}
|
|
360
366
|
|
|
361
367
|
.str-chat__message--me .str-chat__message-inner {
|
|
362
|
-
margin-inline-start:
|
|
368
|
+
margin-inline-start: var(--str-chat-message-options-size);
|
|
363
369
|
}
|
|
364
370
|
|
|
365
371
|
.str-chat__li--middle,
|
|
@@ -512,3 +518,28 @@
|
|
|
512
518
|
.str-chat__message-text--pointer-cursor {
|
|
513
519
|
cursor: pointer;
|
|
514
520
|
}
|
|
521
|
+
|
|
522
|
+
.str-chat__message-with-touch-support {
|
|
523
|
+
-webkit-touch-callout: none;
|
|
524
|
+
-webkit-user-select: none;
|
|
525
|
+
user-select: none;
|
|
526
|
+
|
|
527
|
+
&.str-chat__message-menu-opened {
|
|
528
|
+
.str-chat__attachments-container,
|
|
529
|
+
.str-chat__message-text-inner {
|
|
530
|
+
pointer-events: none;
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.str-chat__message-inner {
|
|
535
|
+
margin-inline: 0;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
.str-chat__message-options {
|
|
539
|
+
display: none;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
.stream-chat-angular__image-modal-host {
|
|
543
|
+
-webkit-touch-callout: default;
|
|
544
|
+
}
|
|
545
|
+
}
|
|
@@ -6,6 +6,17 @@
|
|
|
6
6
|
position: absolute;
|
|
7
7
|
inset-block-end: 100%;
|
|
8
8
|
|
|
9
|
+
&.str-chat-angular-v5__reaction-selector {
|
|
10
|
+
position: static;
|
|
11
|
+
|
|
12
|
+
.str-chat__message-reactions-options {
|
|
13
|
+
max-width: 100%;
|
|
14
|
+
overflow-y: auto;
|
|
15
|
+
overflow-x: hidden;
|
|
16
|
+
scrollbar-width: none;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
9
20
|
.str-chat__message-reactions-options {
|
|
10
21
|
list-style: none;
|
|
11
22
|
display: flex;
|
|
@@ -62,6 +62,11 @@
|
|
|
62
62
|
|
|
63
63
|
/* Box shadow applied to the component */
|
|
64
64
|
--str-chat__message-reactions-option-box-shadow: none;
|
|
65
|
+
|
|
66
|
+
.str-chat-angular-v5__reaction-selector {
|
|
67
|
+
--str-chat__message-reactions-options-box-shadow: none;
|
|
68
|
+
--str-chat__message-reactions-options-border-radius: 0;
|
|
69
|
+
}
|
|
65
70
|
}
|
|
66
71
|
|
|
67
72
|
.str-chat__reaction-selector {
|
|
@@ -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 * {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stream-chat-react",
|
|
3
|
-
"version": "12.0.0-rc.
|
|
3
|
+
"version": "12.0.0-rc.2",
|
|
4
4
|
"description": "React components to create chat conversations or livestream style chat",
|
|
5
5
|
"author": "GetStream",
|
|
6
6
|
"homepage": "https://getstream.io/chat/",
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
"@semantic-release/changelog": "^6.0.2",
|
|
141
141
|
"@semantic-release/git": "^10.0.1",
|
|
142
142
|
"@stream-io/rollup-plugin-node-builtins": "^2.1.5",
|
|
143
|
-
"@stream-io/stream-chat-css": "
|
|
143
|
+
"@stream-io/stream-chat-css": "5.0.0-rc.1",
|
|
144
144
|
"@testing-library/jest-dom": "^6.1.4",
|
|
145
145
|
"@testing-library/react": "^13.1.1",
|
|
146
146
|
"@testing-library/react-hooks": "^8.0.0",
|