stream-chat-react 10.4.1 → 10.5.0-alpha.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.
Files changed (55) hide show
  1. package/CHANGELOG.md +2296 -0
  2. package/dist/assets/assets/EmojiOneColor.woff2 +0 -0
  3. package/dist/assets/assets/NotoColorEmoji-flags.woff2 +0 -0
  4. package/dist/assets/assets/Poweredby_100px-White_VertText.png +0 -0
  5. package/dist/assets/assets/str-chat__reaction-list-sprite@1x.png +0 -0
  6. package/dist/assets/assets/str-chat__reaction-list-sprite@2x.png +0 -0
  7. package/dist/assets/assets/str-chat__reaction-list-sprite@3x.png +0 -0
  8. package/dist/browser.full-bundle.js +78 -28
  9. package/dist/browser.full-bundle.js.map +1 -1
  10. package/dist/browser.full-bundle.min.js +4 -4
  11. package/dist/browser.full-bundle.min.js.map +1 -1
  12. package/dist/components/Channel/Channel.d.ts.map +1 -1
  13. package/dist/components/Channel/Channel.js +4 -0
  14. package/dist/components/Channel/channelState.d.ts +167 -1
  15. package/dist/components/Channel/channelState.d.ts.map +1 -1
  16. package/dist/components/Message/MessageSimple.d.ts.map +1 -1
  17. package/dist/components/Message/MessageSimple.js +7 -1
  18. package/dist/components/Message/MessageText.js +1 -1
  19. package/dist/components/MessageInput/hooks/useMessageInputState.d.ts.map +1 -1
  20. package/dist/components/MessageInput/hooks/useSubmitHandler.d.ts.map +1 -1
  21. package/dist/components/MessageInput/hooks/useSubmitHandler.js +69 -28
  22. package/dist/context/ChannelActionContext.d.ts +2 -1
  23. package/dist/context/ChannelActionContext.d.ts.map +1 -1
  24. package/dist/context/ChannelStateContext.d.ts +14 -1
  25. package/dist/context/ChannelStateContext.d.ts.map +1 -1
  26. package/dist/css/index.css +1 -1
  27. package/dist/css/index.css.map +1 -1
  28. package/dist/css/v2/index.css +5478 -1
  29. package/dist/css/v2/index.css.map +1 -1
  30. package/dist/css/v2/index.layout.css +1 -1
  31. package/dist/css/v2/index.layout.css.map +1 -1
  32. package/dist/index.cjs.js +78 -28
  33. package/dist/index.cjs.js.map +1 -1
  34. package/dist/scss/Attachment.scss +20 -45
  35. package/dist/scss/Audio.scss +0 -1
  36. package/dist/scss/ChannelList.scss +0 -14
  37. package/dist/scss/ChannelSearch.scss +8 -8
  38. package/dist/scss/Message.scss +41 -26
  39. package/dist/scss/MessageCommerce.scss +1 -1
  40. package/dist/scss/Thread.scss +2 -39
  41. package/dist/scss/VirtualMessage.scss +6 -2
  42. package/dist/scss/v2/AttachmentList/AttachmentList-layout.scss +18 -13
  43. package/dist/scss/v2/ChannelList/ChannelList-layout.scss +0 -14
  44. package/dist/scss/v2/ChannelSearch/ChannelSearch-layout.scss +51 -68
  45. package/dist/scss/v2/ChannelSearch/ChannelSearch-theme.scss +0 -48
  46. package/dist/scss/v2/MessageList/MessageList-layout.scss +4 -1
  47. package/dist/scss/v2/MessageList/VirtualizedMessageList-layout.scss +0 -21
  48. package/dist/scss/v2/MessageList/VirtualizedMessageList-theme.scss +0 -9
  49. package/dist/scss/v2/Notification/NotificationList-theme.scss +2 -2
  50. package/dist/scss/v2/Tooltip/Tooltip-layout.scss +1 -1
  51. package/dist/scss/v2/_utils.scss +8 -4
  52. package/dist/version.d.ts +1 -1
  53. package/dist/version.d.ts.map +1 -1
  54. package/dist/version.js +1 -1
  55. package/package.json +1 -1
@@ -1,88 +1,71 @@
1
1
  @use '../utils';
2
2
 
3
- .str-chat__channel-search {
4
- position: relative;
3
+ .str-chat__channel-search-bar {
4
+ @include utils.flex-row-center;
5
+ padding: var(--str-chat__spacing-2_5);
5
6
 
6
- .str-chat__channel-search-bar {
7
- @include utils.flex-row-center;
7
+ .str-chat__channel-search-bar-button {
8
+ @include utils.button-reset;
9
+ width: calc(var(--str-chat__spacing-px) * 40);
10
+ height: calc(var(--str-chat__spacing-px) * 40);
8
11
  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;
9
21
 
10
- .str-chat__channel-search-bar-button {
22
+ .str-chat__channel-search-input--icon,
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 {
11
29
  @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);
15
30
  cursor: pointer;
31
+
32
+ &:disabled {
33
+ cursor: default;
34
+ }
16
35
  }
17
36
 
18
- .str-chat__channel-search-input--wrapper {
19
- display: flex;
20
- align-items: center;
37
+ input {
21
38
  flex: 1;
22
- padding: var(--str-chat__spacing-2_5);
23
39
  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
- }
44
40
  }
45
41
  }
42
+ }
46
43
 
47
- .str-chat__channel-search-container-searching {
48
- width: 100%;
49
- padding: var(--str-chat__spacing-5) var(--str-chat__spacing-4);
50
- }
44
+ .str-chat__channel-search-results-header {
45
+ width: 100%;
46
+ padding: var(--str-chat__spacing-5) var(--str-chat__spacing-4);
47
+ }
51
48
 
52
- .str-chat__channel-search-results-header {
49
+ .str-chat__channel-search-result-list {
50
+ .str-chat__channel-search-container-empty {
51
+ display: flex;
52
+ flex-direction: column;
53
+ align-items: center;
53
54
  width: 100%;
54
- padding: var(--str-chat__spacing-5) var(--str-chat__spacing-4);
55
- }
56
55
 
57
-
58
- .str-chat__channel-search-result-list {
59
- &.popup {
60
- position: absolute;
61
- left: 0;
62
- right: 0;
63
- }
64
-
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
- }
56
+ svg {
57
+ height: calc(var(--str-chat__spacing-px) * 90 + var(--str-chat__spacing-20));
58
+ width: calc(var(--str-chat__spacing-px) * 90);
59
+ padding: var(--str-chat__spacing-10) 0;
77
60
  }
61
+ }
78
62
 
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
- }
63
+ .str-chat__channel-search-result {
64
+ @include utils.button-reset;
65
+ display: flex;
66
+ align-items: center;
67
+ width: 100%;
68
+ column-gap: var(--str-chat__spacing-2);
69
+ padding: var(--str-chat__spacing-3) var(--str-chat__spacing-2);
87
70
  }
88
- }
71
+ }
@@ -89,25 +89,6 @@
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
-
111
92
  /* The font color used in the search results header */
112
93
  --str-chat__channel-search-results-header-color: var(--str-chat__text-low-emphasis-color);
113
94
 
@@ -127,25 +108,6 @@
127
108
  /* Right (left in RTL layout) border of the component */
128
109
  --str-chat__channel-search-results-header-border-inline-end: none;
129
110
 
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
-
149
111
  /* The font color used in the empty search results indicator */
150
112
  --str-chat__channel-search-results-empty-color: var(--str-chat__text-low-emphasis-color);
151
113
 
@@ -200,16 +162,6 @@
200
162
  }
201
163
 
202
164
  .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
-
213
165
  .str-chat__channel-search-container-empty {
214
166
  @include utils.component-layer-overrides('channel-search-results-empty');
215
167
  font: var(--str-chat__subtitle2-medium-text);
@@ -32,9 +32,12 @@
32
32
 
33
33
  .str-chat__thread-start {
34
34
  text-align: start;
35
- padding-top: var(--str-chat__spacing-3);
36
35
  }
37
36
  }
37
+
38
+ .str-chat__parent-message-li .str-chat__thread-start {
39
+ padding-top: var(--str-chat__spacing-3);
40
+ }
38
41
  }
39
42
 
40
43
  .str-chat__jump-to-latest-message {
@@ -14,15 +14,6 @@
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
-
26
17
  // conditionally showing the header displaces items when prepending.
27
18
  // a simple workaround is to make the loading indicator an overlay.
28
19
  &__loading {
@@ -51,15 +42,3 @@
51
42
  padding-block-end: var(--str-chat__spacing-0_5);
52
43
  }
53
44
  }
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,13 +29,4 @@
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
- }
41
32
  }
@@ -26,6 +26,6 @@
26
26
  --str-chat__notification-list-box-shadow: none;
27
27
  }
28
28
 
29
- .str-chat__list-notifications {
30
- @include utils.component-layer-overrides('notification-list');
29
+ .str-chat__list-notification-lists {
30
+ @include utils.component-layer-overrides('notification-list-list');
31
31
  }
@@ -4,6 +4,6 @@
4
4
  display: flex;
5
5
  padding: var(--str-chat__spacing-2);
6
6
  z-index: 1;
7
+ word-break: normal;
7
8
  max-width: calc(var(--str-chat__spacing-px) * 150);
8
- width: max-content;
9
9
  }
@@ -188,9 +188,13 @@
188
188
  }
189
189
 
190
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)
191
+ height: calc(
192
+ min(
193
+ calc(var(#{$max-height-css-var}) * 1px),
194
+ calc(
195
+ min(calc(var(#{$max-width-css-var}) / var(--original-width) * 1px), 1) *
196
+ var(--original-height, Infinity)
197
+ )
198
+ ) * 1px
195
199
  );
196
200
  }
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const version = "10.4.1";
1
+ export declare const version = "10.5.0-alpha.0";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,mBAAmB,CAAC"}
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export var version = '10.4.1';
1
+ export var version = '10.5.0-alpha.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-react",
3
- "version": "10.4.1",
3
+ "version": "10.5.0-alpha.0",
4
4
  "description": "React components to create chat conversations or livestream style chat",
5
5
  "author": "GetStream",
6
6
  "homepage": "https://getstream.io/chat/",